Skip to content

Commit b384a6c

Browse files
authored
chore(tests/e2e): save cookies outside of test-results dir (#1148)
1 parent c4c1449 commit b384a6c

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,6 @@ src/safari/Web Monetization/Shared \(Extension\)/Resources/*
4545

4646
# playwright
4747
/tests/e2e/test-results/
48-
/tests/e2e/test-results/.auth
48+
/tests/e2e/.auth
4949
/tests/e2e/playwright-report/
5050
/playwright/.cache/

tests/e2e/fixtures/helpers.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import {
1212
type WorkerInfo,
1313
type Worker,
1414
} from '@playwright/test';
15+
import { format } from 'date-fns';
1516
import { APP_URL } from '@/background/constants';
1617
import { DIST_DIR, ROOT_DIR } from '../../../esbuild/config';
1718
import type { TranslationKeys } from '../../../src/shared/helpers';
@@ -26,9 +27,8 @@ export const BUILD_DIR = DIST_DIR;
2627
// https://playwright.dev/docs/auth#basic-shared-account-in-all-tests
2728
export const authFile = path.join(
2829
testDir,
29-
'test-results',
3030
'.auth',
31-
'rafiki-money.json',
31+
`testnet-${format(new Date(), 'yyyyII')}.json`,
3232
);
3333

3434
const FIREFOX_ADDON_UUID = crypto.randomUUID();

0 commit comments

Comments
 (0)