Skip to content

Commit eb0a2a8

Browse files
committed
test(e2e): fix e2e tests
1 parent 833b650 commit eb0a2a8

File tree

6 files changed

+6
-9
lines changed

6 files changed

+6
-9
lines changed

src/demos/SwipeControlDemo.vue

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,8 @@
1414
/>
1515
</ol-tile-layer>
1616

17-
<ol-tile-layer ref="bingLayer" title="Bing Maps">
18-
<ol-source-bingmaps
19-
apiKey="AjtUzWJBHlI3Ma_Ke6Qv2fGRXEs0ua5hUQi54ECwfXTiWsitll4AkETZDihjcfeI"
20-
imagerySet="CanvasDark"
21-
/>
17+
<ol-tile-layer ref="stadiaLayer" title="Stamen Watercolor">
18+
<ol-source-stadia-maps layer="stamen_watercolor" />
2219
</ol-tile-layer>
2320

2421
<ol-tile-layer ref="osmLayer" title="OSM">
@@ -37,11 +34,11 @@ const zoom = ref(8);
3734
const layerList = ref([]);
3835
const jawgLayer = ref(null);
3936
const osmLayer = ref(null);
40-
const bingLayer = ref(null);
37+
const stadiaLayer = ref(null);
4138
4239
onMounted(() => {
4340
layerList.value.push(jawgLayer.value.tileLayer);
44-
layerList.value.push(bingLayer.value.tileLayer);
41+
layerList.value.push(stadiaLayer.value.tileLayer);
4542
layerList.value.push(osmLayer.value.tileLayer);
4643
});
4744
</script>
84.4 KB
Loading
553 Bytes
Loading
-555 KB
Binary file not shown.

tests/controls.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ test.describe("ol-zone-control", () => {
206206
await map.goto("/componentsguide/mapcontrols/zone/");
207207
await map.waitUntilReady();
208208
await map.waitUntilCanvasLoaded();
209-
await map.page.locator(".ol-control.ol-mapzone").nth(1).click();
209+
await map.page.locator(".ol-control.ol-mapzone").click();
210210
await map.checkCanvasScreenshot();
211211
});
212212
});

tests/sources.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { test } from "@playwright/test";
22

33
import { MapPage } from "./MapPage";
44

5-
test.describe("ol-source-bingmaps", () => {
5+
test.describe.skip("ol-source-bingmaps", () => {
66
test("should render", async ({ page }) => {
77
const map = new MapPage(page);
88
await map.goto("/componentsguide/sources/bing/");

0 commit comments

Comments
 (0)