Skip to content

Commit

Permalink
chore(playwright): set up server
Browse files Browse the repository at this point in the history
  • Loading branch information
eliandoran committed Jan 10, 2025
1 parent ab2a4d7 commit 963247f
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions playwright.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { defineConfig, devices } from '@playwright/test';

const SERVER_URL = 'http://127.0.0.1:8082';

/**
* Read environment variables from file.
* https://github.com/motdotla/dotenv
Expand All @@ -26,7 +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:8082',
baseURL: SERVER_URL,

/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
trace: 'on-first-retry',
Expand Down Expand Up @@ -71,9 +73,9 @@ export default defineConfig({
],

/* Run your local dev server before starting the tests */
// webServer: {
// command: 'npm run start',
// url: 'http://127.0.0.1:3000',
// reuseExistingServer: !process.env.CI,
// },
webServer: {
command: 'npm run integration-mem-db-dev',
url: SERVER_URL,
// reuseExistingServer: !process.env.CI,
},
});

0 comments on commit 963247f

Please sign in to comment.