2
0
Files
bot/apps/builder/playwright.config.ts

22 lines
597 B
TypeScript
Raw Normal View History

2022-11-02 19:45:46 +01:00
import { PlaywrightTestConfig } from '@playwright/test'
import path from 'path'
2022-11-02 19:45:46 +01:00
import { playwrightBaseConfig } from 'configs/playwright'
2022-02-24 11:13:19 +01:00
const config: PlaywrightTestConfig = {
2022-11-02 19:45:46 +01:00
...playwrightBaseConfig,
webServer: process.env.CI
? {
...(playwrightBaseConfig.webServer as { command: string }),
port: 3000,
}
: undefined,
use: {
2022-11-02 19:45:46 +01:00
...playwrightBaseConfig.use,
baseURL: process.env.NEXTAUTH_URL,
storageState: path.join(__dirname, 'playwright/firstUser.json'),
},
outputDir: path.join(__dirname, 'playwright/test-results/'),
}
2022-11-02 19:45:46 +01:00
export default config