Skip to content

Commit

Permalink
e2e: give correct path for playwright session files
Browse files Browse the repository at this point in the history
  • Loading branch information
nboisteault committed Oct 10, 2024
1 parent 685734c commit a6587e7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/end2end/playwright/auth.setup.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { test as setup } from '@playwright/test';
import path from 'path';

const user_in_group_aFile = 'playwright/.auth/user_in_group_a.json';
const user_in_group_aFile = path.join(__dirname, './.auth/user_in_group_a.json');

setup('authenticate as user_in_group_a', async ({ page }) => {
// Perform authentication steps. Replace these actions with your own.
Expand All @@ -19,7 +20,7 @@ setup('authenticate as user_in_group_a', async ({ page }) => {
await page.context().storageState({ path: user_in_group_aFile });
});

const adminFile = 'playwright/.auth/admin.json';
const adminFile = path.join(__dirname, './.auth/admin.json');

setup('authenticate as admin', async ({ page }) => {
// Perform authentication steps. Replace these actions with your own.
Expand Down

0 comments on commit a6587e7

Please sign in to comment.