Last active
April 7, 2023 13:22
-
-
Save corradin/b562054ae5d194a236f9e5f87a81172d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { PlaywrightTestConfig } from '@playwright/test'; | |
import { devices } from 'playwright'; | |
import dotenv from 'dotenv'; | |
dotenv.config(); | |
export const storageStatePath = 'storage-state/storageState.json'; | |
const config: PlaywrightTestConfig = { | |
use: { | |
trace: 'retain-on-failure', | |
headless: false, | |
}, | |
projects: [ | |
{ | |
name: 'setup', | |
testMatch: 'login.setup.ts', | |
}, | |
{ | |
name: 'Chrome', | |
use: { | |
browserName: 'chromium', | |
storageState: storageStatePath, | |
}, | |
dependencies: ['setup'], | |
} | |
], | |
}; | |
export default config; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment