Skip to content

Commit 2b32816

Browse files
committed
test(e2e): fixup tests and provide tests for ol-graticule
1 parent 31db58f commit 2b32816

File tree

4 files changed

+11
-1
lines changed

4 files changed

+11
-1
lines changed

playwright.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export default defineConfig({
1717
/* Fail the build on CI if you accidentally left test.only in the source code. */
1818
forbidOnly: !!process.env.CI,
1919
/* Retry on CI only */
20-
retries: process.env.CI ? 2 : 0,
20+
retries: process.env.CI ? 3 : 0,
2121
/* Opt out of parallel tests on CI. */
2222
workers: process.env.CI ? 1 : undefined,
2323
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
-41 Bytes
Loading
101 KB
Loading

tests/layers.test.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,16 @@ test.describe("ol-animated-clusterlayer", () => {
2222
});
2323
});
2424

25+
test.describe("ol-graticule-layer", () => {
26+
test("should render", async ({ page }) => {
27+
const map = new MapPage(page);
28+
await map.goto("/componentsguide/layers/graticulelayer/");
29+
await map.waitUntilReady();
30+
await map.waitUntilCanvasLoaded();
31+
await map.checkCanvasScreenshot();
32+
});
33+
});
34+
2535
test.describe("ol-heatmap-layer", () => {
2636
test("should render", async ({ page }) => {
2737
const map = new MapPage(page);

0 commit comments

Comments
 (0)