-
-
Notifications
You must be signed in to change notification settings - Fork 341
Expand file tree
/
Copy pathplaywright.authenticated.config.js
More file actions
26 lines (24 loc) · 874 Bytes
/
playwright.authenticated.config.js
File metadata and controls
26 lines (24 loc) · 874 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
const { defineConfig } = require('@playwright/test');
// Session directories contain live Microsoft auth tokens stored in plaintext
// (--password-store=basic). Never commit session data or use a path outside
// a gitignored directory. The Docker workflow stores sessions in the
// gitignored tests/cross-distro/session/ directory.
if (!process.env.E2E_SESSION_DIR) {
throw new Error(
'E2E_SESSION_DIR must be set to a gitignored directory containing a ' +
'logged-in session. Create one with: cd tests/cross-distro && ./run.sh ubuntu x11 --login'
);
}
module.exports = defineConfig({
testDir: './tests/e2e/authenticated',
timeout: 90000,
fullyParallel: false,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 1 : 0,
workers: 1,
reporter: 'list',
use: {
trace: 'on-first-retry',
sessionDir: process.env.E2E_SESSION_DIR,
},
});