mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-06 05:02:58 +03:00
ci/cd: fix .auth path of e2e tests
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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']
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user