mirror of
https://github.com/enso-org/enso.git
synced 2024-12-23 03:21:44 +03:00
16 lines
431 B
TypeScript
16 lines
431 B
TypeScript
import { test as setup } from '@playwright/test'
|
|
import path from 'node:path'
|
|
import * as actions from './actions'
|
|
|
|
const __dirname = path.dirname(new URL(import.meta.url).pathname)
|
|
const authFile = path.join(__dirname, '../../playwright/.auth/user.json')
|
|
|
|
setup('authenticate', ({ page }) =>
|
|
actions
|
|
.mockAll({ page })
|
|
.login()
|
|
.do(async () => {
|
|
await page.context().storageState({ path: authFile })
|
|
}),
|
|
)
|