Skip to content

Commit 8001f6d

Browse files
committed
Once again try to run on CI, this time with test.slow()
1 parent da08805 commit 8001f6d

File tree

3 files changed

+21
-9
lines changed

3 files changed

+21
-9
lines changed

.github/workflows/check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Lint and check formatting
1+
name: lint & test
22

33
on: pull_request
44

playwright.config.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,12 @@ export default defineConfig({
2727
channel: "chromium",
2828
...(process.env.CI
2929
? {
30-
args: ["--use-gl=egl", "--ignore-gpu-blocklist"],
30+
args: [
31+
"--use-gl=angle",
32+
"--use-angle=gl-egl",
33+
"--ignore-gpu-blocklist",
34+
"--enable-unsafe-swiftshader",
35+
],
3136
}
3237
: {}),
3338
},

test/e2e/community-events.spec.ts

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ test.beforeEach(async ({ page }) => {
55
})
66

77
test("Zurich meetup link works", async ({ page }) => {
8+
if (process.env.CI) test.slow()
9+
810
const link = page.getByRole("link", { name: /Zurich/i }).first()
911
await link.scrollIntoViewIfNeeded()
1012

@@ -19,28 +21,33 @@ test("Zurich meetup link works", async ({ page }) => {
1921
})
2022

2123
test("map matches screenshot", async ({ page }) => {
24+
if (process.env.CI) test.slow()
25+
2226
const mapContainer = page.locator("#meetups-map").first()
2327
await mapContainer.scrollIntoViewIfNeeded()
24-
await expect(mapContainer).toBeVisible({ timeout: 10000 })
2528
await page.waitForTimeout(1500) // we need to wait until Playwright finishes scrolling...
2629

2730
const mapCanvas = page.locator("canvas").first()
28-
await expect(mapCanvas).toBeVisible({ timeout: 10000 })
2931

3032
await expect
31-
.poll(async () => {
32-
const box = await mapCanvas.boundingBox()
33-
return box && box.width > 100 && box.height > 100
34-
})
33+
.poll(
34+
async () => {
35+
const box = await mapCanvas.boundingBox()
36+
return box && box.width > 100 && box.height > 100
37+
},
38+
{ timeout: 15_000 },
39+
)
3540
.toBe(true)
3641

3742
await expect(mapContainer.locator("canvas").first()).toHaveScreenshot(
3843
"meetups-map.png",
39-
{ timeout: 15_000 },
44+
{ timeout: 30_000 },
4045
)
4146
})
4247

4348
test("map tooltip appears on marker hover", async ({ page }) => {
49+
if (process.env.CI) test.slow()
50+
4451
const mapContainer = page.locator("#meetups-map").first()
4552
await mapContainer.scrollIntoViewIfNeeded()
4653
await expect(mapContainer).toBeVisible({ timeout: 10000 })

0 commit comments

Comments
 (0)