Merge pull request #841 from toeverything/feat/e2etest-20230206

Feat/e2etest 20230206
This commit is contained in:
DarkSky
2023-02-07 02:00:09 +08:00
committed by GitHub
11 changed files with 117 additions and 118 deletions

View File

@@ -17,6 +17,7 @@ const config: PlaywrightTestConfig = {
browserName: 'chromium',
viewport: { width: 1440, height: 800 },
actionTimeout: 5 * 1000,
locale: 'en-US',
// Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer
// You can open traces locally(`npx playwright show-trace trace.zip`)
// or in your browser on [Playwright Trace Viewer](https://trace.playwright.dev/).
@@ -27,7 +28,7 @@ const config: PlaywrightTestConfig = {
fullyParallel: true,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 2 : 0,
retries: process.env.CI ? 3 : 0,
workers: process.env.CI ? '100%' : undefined,
webServer: {