ci/cd: fix .auth path of e2e tests

This commit is contained in:
Elias Schneider
2025-05-22 22:40:45 +02:00
parent ebcf861aa6
commit ca5e754aea
3 changed files with 6 additions and 6 deletions

View File

@@ -2,7 +2,7 @@ import { test as setup } from '@playwright/test';
import authUtil from './utils/auth.util';
import { cleanupBackend } from './utils/cleanup.util';
const authFile = 'tests/.auth/user.json';
const authFile = '.auth/user.json';
setup('authenticate', async ({ page }) => {
await cleanupBackend();

View File

@@ -12,8 +12,8 @@ export default defineConfig({
retries: process.env.CI ? 1 : 0,
workers: 1,
reporter: process.env.CI
? [['html', { outputFolder: './.report' }], ['github']]
: [['line'], ['html', { open: 'never', outputFolder: './.report' }]],
? [['html', { outputFolder: '.report' }], ['github']]
: [['line'], ['html', { open: 'never', outputFolder: '.report' }]],
use: {
baseURL: process.env.APP_URL ?? 'http://localhost:1411',
video: 'retain-on-failure',
@@ -23,7 +23,7 @@ export default defineConfig({
{ name: 'setup', testMatch: /.*\.setup\.ts/ },
{
name: 'chromium',
use: { ...devices['Desktop Chrome'], storageState: './.auth/user.json' },
use: { ...devices['Desktop Chrome'], storageState: '.auth/user.json' },
dependencies: ['setup']
}
]