give
Last commit date
assets
1 year ago
blocks
8 months ago
build
1 day ago
includes
1 day ago
languages
1 day ago
sample-data
10 months ago
src
1 day ago
templates
4 weeks ago
vendor
1 day ago
.nvmrc
1 day ago
.puprc
2 months ago
changelog.txt
1 day ago
give.php
1 day ago
license.txt
6 years ago
playwright.config.ts
1 day ago
readme.txt
1 day ago
uninstall.php
2 years ago
playwright.config.ts
36 lines
| 1 | import {defineConfig, devices} from '@playwright/test'; |
| 2 | import {STORAGE_STATE_PATH, WP_BASE_URL} from './tests/e2e/environment'; |
| 3 | |
| 4 | export default defineConfig({ |
| 5 | testDir: './tests/e2e', |
| 6 | timeout: 60_000, |
| 7 | retries: process.env.CI ? 2 : 0, |
| 8 | /* |
| 9 | * GiveWP's admin screens share one site's options and database, so parallel workers would see |
| 10 | * each other's state. Revisit per-worker isolation when the suite grows enough to need it. |
| 11 | */ |
| 12 | workers: 1, |
| 13 | reporter: process.env.CI ? 'github' : 'list', |
| 14 | globalSetup: './tests/e2e/global-setup.ts', |
| 15 | outputDir: './artifacts/test-results', |
| 16 | use: { |
| 17 | baseURL: WP_BASE_URL, |
| 18 | // Local environments that terminate TLS in front of wp-env use a self-signed certificate. |
| 19 | ignoreHTTPSErrors: true, |
| 20 | storageState: STORAGE_STATE_PATH, |
| 21 | video: 'retain-on-failure', |
| 22 | screenshot: 'only-on-failure', |
| 23 | trace: 'retain-on-failure', |
| 24 | }, |
| 25 | projects: [ |
| 26 | { |
| 27 | name: 'chromium', |
| 28 | use: {...devices['Desktop Chrome']}, |
| 29 | }, |
| 30 | { |
| 31 | name: 'headed', |
| 32 | use: {...devices['Desktop Chrome'], headless: false, launchOptions: {slowMo: 800}}, |
| 33 | }, |
| 34 | ], |
| 35 | }); |
| 36 |