fix playwright tests (#759)

This commit is contained in:
slothful-vassal
2026-02-01 21:02:36 +01:00
committed by GitHub
parent 029f1f134b
commit 6d5494935d
8 changed files with 90 additions and 42 deletions

View File

@@ -11,8 +11,8 @@ import { defineConfig, devices } from '@playwright/test';
*/
export default defineConfig({
testDir: './tests/playwright',
/* Run tests in files in parallel */
fullyParallel: true,
/* Run tests in files in parallel - disabled to prevent auth conflicts */
fullyParallel: false,
/* Fail the build on CI if you accidentally left test.only in the source code. */
forbidOnly: !!process.env.CI,
/* Retry on CI only */
@@ -34,8 +34,10 @@ export default defineConfig({
projects: [
{ name: 'setup', testMatch: /.*\.setup\.ts/ },
{
name: 'teardown', testMatch: /.*\.teardown\.ts/, use:
{
name: 'teardown',
testMatch: /.*\.teardown\.ts/,
dependencies: ['chromium'],
use: {
storageState: 'playwright/.auth/user.json',
}
},
@@ -52,7 +54,7 @@ export default defineConfig({
{
name: 'chromium',
// dependencies: ['setup'],
dependencies: ['setup'],
use: {
...devices['Desktop Chrome'],
storageState: 'playwright/.auth/user.json',