Skip to content

Commit

Permalink
minor tweaks to e2e tests
Browse files Browse the repository at this point in the history
Signed-off-by: Liam Stanley <[email protected]>
  • Loading branch information
lrstanley committed Dec 17, 2022
1 parent 06e4055 commit b1f5ff9
Showing 1 changed file with 1 addition and 24 deletions.
25 changes: 1 addition & 24 deletions public/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,21 @@ const config: PlaywrightTestConfig = {
webServer: {
command: "cd .. && make node-preview",
port: 8081,
timeout: 30 * 1000,
reuseExistingServer: !process.env.CI,
},
use: {
actionTimeout: 0,
baseURL: "http://localhost:8081",
trace: "on-first-retry",
bypassCSP: true,
screenshot: "only-on-failure",
},
timeout: 30 * 1000,
expect: {
timeout: 7000,
},
fullyParallel: true,
// repeatEach: 3,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 3 : 0,
workers: process.env.CI ? 1 : undefined,
// workers: process.env.CI ? 1 : undefined,
reporter: process.env.CI ? "github" : "list",
projects: [
{
Expand All @@ -40,25 +36,6 @@ const config: PlaywrightTestConfig = {
...devices["Desktop Firefox"],
},
},
{
name: "webkit",
use: {
...devices["Desktop Safari"],
},
},
/* Test against mobile viewports. */
// {
// name: 'Mobile Chrome',
// use: {
// ...devices['Pixel 5'],
// },
// },
// {
// name: 'Mobile Safari',
// use: {
// ...devices['iPhone 12'],
// },
// },
],
}

Expand Down

0 comments on commit b1f5ff9

Please sign in to comment.