Add @playwright/test support

This commit is contained in:
Daniel Imms
2023-08-27 08:08:52 -07:00
parent 2b7b4d6fea
commit fbebabe2e6
24 changed files with 585 additions and 30 deletions
+34
View File
@@ -0,0 +1,34 @@
import { PlaywrightTestConfig } from '@playwright/test';
const config: PlaywrightTestConfig = {
testDir: '.',
timeout: 10000,
projects: [
{
name: 'Chrome Stable',
use: {
browserName: 'chromium',
channel: 'chrome'
}
},
{
name: 'Firefox Stable',
use: {
browserName: 'firefox'
}
},
{
name: 'WebKit',
use: {
browserName: 'webkit'
}
}
],
webServer: {
command: 'npm start',
port: 3000,
timeout: 120000,
reuseExistingServer: !process.env.CI
}
};
export default config;