From ca5e754aea0a851eeb3cc044d6618c340653c189 Mon Sep 17 00:00:00 2001 From: Elias Schneider Date: Thu, 22 May 2025 22:40:45 +0200 Subject: [PATCH] ci/cd: fix `.auth` path of e2e tests --- .dockerignore | 4 ++-- tests/auth.setup.ts | 2 +- tests/playwright.config.ts | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.dockerignore b/.dockerignore index 1c70f0fb..18bf7180 100644 --- a/.dockerignore +++ b/.dockerignore @@ -7,8 +7,8 @@ node_modules /frontend/build /backend/bin /backend/frontend/dist -/frontend/tests/.auth -/frontend/tests/.report +/tests/.auth +/tests/.report # Env diff --git a/tests/auth.setup.ts b/tests/auth.setup.ts index ce2a999b..12fd53d3 100644 --- a/tests/auth.setup.ts +++ b/tests/auth.setup.ts @@ -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(); diff --git a/tests/playwright.config.ts b/tests/playwright.config.ts index 90a9e9c5..055a9be3 100644 --- a/tests/playwright.config.ts +++ b/tests/playwright.config.ts @@ -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'] } ]