website refactor
This commit is contained in:
@@ -21,8 +21,10 @@ import { defineConfig, devices } from '@playwright/test';
|
||||
*/
|
||||
|
||||
export default defineConfig({
|
||||
testDir: './tests/e2e/website',
|
||||
testMatch: ['**/website-pages.e2e.test.ts'],
|
||||
testDir: './tests',
|
||||
testMatch: process.env.RUN_EXHAUSTIVE_E2E === '1'
|
||||
? ['**/e2e/website/*.e2e.test.ts', '**/nightly/website/*.e2e.test.ts']
|
||||
: ['**/e2e/website/*.e2e.test.ts'],
|
||||
testIgnore: ['**/electron-build.smoke.test.ts'],
|
||||
|
||||
// Serial execution for consistent results
|
||||
@@ -38,9 +40,9 @@ export default defineConfig({
|
||||
// Base URL for the website (containerized)
|
||||
use: {
|
||||
baseURL: process.env.PLAYWRIGHT_BASE_URL || 'http://website:3000',
|
||||
screenshot: 'only-on-failure',
|
||||
video: 'retain-on-failure',
|
||||
trace: 'retain-on-failure',
|
||||
screenshot: 'off',
|
||||
video: 'off',
|
||||
trace: 'off',
|
||||
},
|
||||
|
||||
// Reporter: verbose for debugging
|
||||
|
||||
Reference in New Issue
Block a user