Dependency updates, clean up shared test data, create screenshot updater for README
This commit is contained in:
parent
6ae7523d63
commit
1fbddd0e8d
12 changed files with 368 additions and 55 deletions
27
playwright.doc-screenshot.config.ts
Normal file
27
playwright.doc-screenshot.config.ts
Normal file
|
@ -0,0 +1,27 @@
|
|||
import { defineConfig } from '@playwright/test';
|
||||
|
||||
export default defineConfig({
|
||||
use: {
|
||||
locale: 'en-GB',
|
||||
timezoneId: 'Europe/Amsterdam'
|
||||
},
|
||||
webServer: {
|
||||
command: 'yarn build && yarn preview',
|
||||
port: 4173
|
||||
},
|
||||
testDir: './tests/doc-screenshots',
|
||||
outputDir: './test-results/screenshots',
|
||||
projects: [
|
||||
{
|
||||
name: 'Light Mode',
|
||||
use: {
|
||||
viewport: { width: 1440, height: 900 },
|
||||
colorScheme: 'light'
|
||||
}
|
||||
},
|
||||
{
|
||||
name: 'Dark Mode',
|
||||
use: { viewport: { width: 1440, height: 900 }, colorScheme: 'dark' }
|
||||
}
|
||||
]
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue