2
0

refactor(tests): ️ Add msw and mock authentication

This commit is contained in:
Baptiste Arnaud
2022-02-12 10:12:43 +01:00
parent d19b26e7de
commit b1f54b77c6
15 changed files with 789 additions and 129 deletions

View File

@@ -9,14 +9,14 @@ const config: PlaywrightTestConfig = {
timeout: 5000,
},
retries: process.env.NO_RETRIES ? 0 : 2,
workers: process.env.CI ? 1 : undefined,
workers: process.env.CI ? 1 : 3,
reporter: 'html',
maxFailures: process.env.CI ? 10 : undefined,
use: {
actionTimeout: 0,
baseURL: process.env.PLAYWRIGHT_BUILDER_TEST_BASE_URL,
trace: 'on-first-retry',
storageState: path.join(__dirname, 'playwright/authenticatedState.json'),
storageState: path.join(__dirname, 'playwright/proUser.json'),
video: 'retain-on-failure',
locale: 'en-US',
},