2022-11-02 19:45:46 +01:00
|
|
|
import { PlaywrightTestConfig } from '@playwright/test'
|
2022-02-20 10:45:55 +01:00
|
|
|
import path from 'path'
|
2023-03-15 08:35:16 +01:00
|
|
|
import { playwrightBaseConfig } from '@typebot.io/lib/playwright/baseConfig'
|
2022-03-01 07:13:09 +01:00
|
|
|
|
2022-02-20 10:45:55 +01:00
|
|
|
const config: PlaywrightTestConfig = {
|
2022-11-02 19:45:46 +01:00
|
|
|
...playwrightBaseConfig,
|
2022-11-15 10:28:03 +01:00
|
|
|
testDir: path.join(__dirname, 'src'),
|
2022-11-02 19:45:46 +01:00
|
|
|
webServer: process.env.CI
|
|
|
|
? {
|
|
|
|
...(playwrightBaseConfig.webServer as { command: string }),
|
|
|
|
port: 3001,
|
|
|
|
}
|
|
|
|
: undefined,
|
2022-02-20 10:45:55 +01:00
|
|
|
use: {
|
2022-11-02 19:45:46 +01:00
|
|
|
...playwrightBaseConfig.use,
|
|
|
|
baseURL: process.env.NEXT_PUBLIC_VIEWER_URL,
|
2022-02-20 10:45:55 +01:00
|
|
|
},
|
|
|
|
}
|
2022-11-02 19:45:46 +01:00
|
|
|
|
2022-02-20 10:45:55 +01:00
|
|
|
export default config
|