globalsetup paramater
This commit is contained in:
parent
51c3dafa8f
commit
eb18477c6b
|
|
@ -280,8 +280,8 @@ const authFiles = {
|
|||
export default config;
|
||||
`,
|
||||
'auth.ts': `
|
||||
import { chromium, FullConfig } from '@playwright/test';
|
||||
async function globalSetup(config: FullConfig) {
|
||||
import { chromium, ConfigInWorker } from '@playwright/test';
|
||||
async function globalSetup(config: ConfigInWorker) {
|
||||
const { baseURL, storageState } = config.projects[0].use;
|
||||
const browser = await chromium.launch();
|
||||
const page = await browser.newPage();
|
||||
|
|
|
|||
Loading…
Reference in a new issue