Skip to content

Commit

Permalink
chore(playwright): run web server
Browse files Browse the repository at this point in the history
Run webkit browsers

SEE microsoft/playwright#2621 (comment)
  • Loading branch information
leosuncin committed Mar 27, 2022
1 parent 5dd9d44 commit 184e640
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const config: PlaywrightTestConfig = {
/* Maximum time each action such as `click()` can take. Defaults to 0 (no limit). */
actionTimeout: 0,
/* Base URL to use in actions like `await page.goto('/')`. */
baseURL: 'http://localhost:4000',
baseURL: 'http://localhost:3000',

/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
trace: process.env.CI ? 'on-first-retry' : 'retain-on-failure',
Expand All @@ -56,12 +56,12 @@ const config: PlaywrightTestConfig = {
},
},

// {
// name: 'webkit',
// use: {
// ...devices['Desktop Safari'],
// },
// },
{
name: 'webkit',
use: {
...devices['Desktop Safari'],
},
},

/* Test against mobile viewports. */
// {
Expand Down Expand Up @@ -97,9 +97,9 @@ const config: PlaywrightTestConfig = {

/* Run your local dev server before starting the tests */
webServer: {
command: 'npm run start:server',
command: 'npx json-server -r routes.json -s build db.json',
reuseExistingServer: true,
port: 4000,
port: 3000,
},
};

Expand Down

0 comments on commit 184e640

Please sign in to comment.