Skip to content

Commit 4025270

Browse files
committed
Fiddle with tests
1 parent 99d9f6d commit 4025270

File tree

2 files changed

+3
-17
lines changed

2 files changed

+3
-17
lines changed

test/e2e/community-events.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ test("map loads and Zurich meetup link works", async ({ page }) => {
1818
// Take a screenshot of the map and verify it matches snapshot
1919
const mapContainer = page.locator("canvas").first()
2020
await expect(mapContainer).toHaveScreenshot("meetups-map.png", {
21-
timeout: 10000,
21+
timeout: 20_000,
2222
})
2323

2424
// Find the "Past events & meetups" section

test/e2e/test-test.spec.ts

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,26 +15,12 @@ test.beforeEach(async ({ browser }, testInfo) => {
1515
})
1616

1717
test.describe("Testing 123", () => {
18-
// Check if hardware acceleration is enabled. Without it, our tests will be much slower.
19-
test("1. GPU hardware acceleration", async ({ page }) => {
20-
await page.goto(url1)
21-
const featureStatusList = page.locator(".feature-status-list")
22-
23-
await waitFor(2000)
24-
await page.screenshot({
25-
path: "screens/screenshot" + currentTime + "_1.png",
26-
fullPage: true,
27-
})
28-
29-
await expect(featureStatusList).toContainText("Hardware accelerated")
30-
})
31-
3218
test("2. webgl report", async ({ page }) => {
3319
await page.goto(url2)
3420

3521
await waitFor(2000)
3622
await page.screenshot({
37-
path: "screens/screenshot" + currentTime + "_2.png",
23+
path: "playwright-report/screenshot" + currentTime + "_2.png",
3824
fullPage: true,
3925
})
4026
})
@@ -44,7 +30,7 @@ test.describe("Testing 123", () => {
4430

4531
await waitFor(5000)
4632
await page.screenshot({
47-
path: "screens/screenshot" + currentTime + "_3.png",
33+
path: "playwright-report/screenshot" + currentTime + "_3.png",
4834
fullPage: true,
4935
})
5036
})

0 commit comments

Comments
 (0)