Skip to content

Commit

Permalink
ci: update playwright config
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierniki committed Nov 13, 2023
1 parent 4d00d54 commit f0d10eb
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ import { defineConfig, devices } from "@playwright/test"
/**
* See https://playwright.dev/docs/test-configuration.
*/

const port = 3000
const baseURL = `http://localhost:${port}`

export default defineConfig({
testDir: "./src/e2e",
/* Run tests in files in parallel */
Expand All @@ -24,8 +28,7 @@ export default defineConfig({
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
use: {
/* Base URL to use in actions like `await page.goto('/')`. */
baseURL: "http://127.0.0.1:3000",

baseURL,
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
trace: "on-first-retry",
},
Expand Down Expand Up @@ -70,8 +73,8 @@ export default defineConfig({

/* Run your local dev server before starting the tests */
webServer: {
port,
command: "yarn development",
url: "http://127.0.0.1:3000",
reuseExistingServer: !process.env.CI,
},
})

0 comments on commit f0d10eb

Please sign in to comment.