Skip to content

Commit d18c1b9

Browse files
author
Peter Rushforth
committed
When you remove the src attribute from a layer, it's now empty, and
should NOT be disabled.
1 parent fb449de commit d18c1b9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

test/e2e/elements/map-layer/layer-src.test.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,8 @@ test.describe('map-layer local/inline vs remote content/src tests', () => {
3333
);
3434

3535
// remove the src attribute
36-
3736
await layer.evaluate((layer) => layer.removeAttribute('src'));
38-
// Wait for the disabled attribute to be set asynchronously
39-
await expect(layer).toHaveAttribute('disabled', '', { timeout: 2000 });
37+
// empty layer is no longer disabled. Is that correct? I think so...
4038

4139
// append the template map-extent to the local / inline content
4240
await page.evaluate(() => {

0 commit comments

Comments
 (0)