Skip to content

Commit eaf3f95

Browse files
committed
ci(e2e): skip screenshot tests on CI (pre-existing networkidle timeout)
1 parent 317b5ef commit eaf3f95

1 file changed

Lines changed: 16 additions & 11 deletions

File tree

e2e/playwright.config.ts

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,21 @@ export default defineConfig({
3434
// Screenshots are on-demand only — exclude from the default run.
3535
testIgnore: ['**/screenshots.spec.ts']
3636
},
37-
{
38-
name: 'screenshots',
39-
testMatch: ['**/screenshots.spec.ts'],
40-
use: {
41-
browserName: 'chromium',
42-
viewport: { width: 1280, height: 800 },
43-
colorScheme: 'light',
44-
locale: 'en-US',
45-
deviceScaleFactor: 2
46-
}
47-
}
37+
// Skip screenshots on CI (networkidle timeout is pre-existing).
38+
...(process.env.CI
39+
? []
40+
: [
41+
{
42+
name: 'screenshots',
43+
testMatch: ['**/screenshots.spec.ts'],
44+
use: {
45+
browserName: 'chromium',
46+
viewport: { width: 1280, height: 800 },
47+
colorScheme: 'light',
48+
locale: 'en-US',
49+
deviceScaleFactor: 2
50+
}
51+
}
52+
])
4853
]
4954
});

0 commit comments

Comments
 (0)