Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save corradin/b562054ae5d194a236f9e5f87a81172d to your computer and use it in GitHub Desktop.
Save corradin/b562054ae5d194a236f9e5f87a81172d to your computer and use it in GitHub Desktop.
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