Skip to content

Commit 3589531

Browse files
Add screenshots project and blog-screenshots spec for automated blog image capture
1 parent ba49510 commit 3589531

2 files changed

Lines changed: 471 additions & 0 deletions

File tree

playwright.config.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,22 @@ export default defineConfig({
146146
},
147147
},
148148

149+
// Blog Screenshots - captures key UI states for blog posts and documentation
150+
{
151+
name: 'screenshots',
152+
testMatch: /tests\/screenshots\/.*\.spec\.ts/,
153+
use: {
154+
...devices['Desktop Chrome'],
155+
viewport: VIEWPORTS.laptop,
156+
video: 'off',
157+
screenshot: 'off', // manual screenshots only — no auto-capture
158+
launchOptions: {
159+
slowMo: 150, // slow down interactions so UI fully settles before capture
160+
},
161+
},
162+
// No setup dependency — auth is handled inline per screenshot group
163+
},
164+
149165
/* Mobile viewports (optional - uncomment to enable) */
150166
// {
151167
// name: 'Mobile Chrome',

0 commit comments

Comments
 (0)