Files
windmill/frontend/tests/playwright.config.ts
Ádám Kovács b4908392d0 fix(frontend): Playwright (#1108)
* fix(frontend): Playwright

* fix(frontend): Update test base url

* feat(ci): Add base url to playwright
2023-01-16 16:51:14 +01:00

14 lines
527 B
TypeScript

// playwright.config.ts
import type { PlaywrightTestConfig } from '@playwright/test'
const config: PlaywrightTestConfig = {
globalSetup: './global-setup',
use: {
// Tell all tests to load signed-in state from 'storageState.json'.
storageState: 'storageState.json',
// baseURL is set in the globalSetup script as well, because it's not affected by this config.
// Make sure to update it there as well when this is updated.
baseURL: process.env.BASE_URL || 'http://localhost'
}
}
export default config