@@ -5,6 +5,8 @@ test.beforeEach(async ({ page }) => {
55} )
66
77test ( "Zurich meetup link works" , async ( { page } ) => {
8+ if ( process . env . CI ) test . slow ( )
9+
810 const link = page . getByRole ( "link" , { name : / Z u r i c h / i } ) . first ( )
911 await link . scrollIntoViewIfNeeded ( )
1012
@@ -19,28 +21,33 @@ test("Zurich meetup link works", async ({ page }) => {
1921} )
2022
2123test ( "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
4348test ( "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