Skip to content

Commit b04a6ba

Browse files
committed
tests: add first test
1 parent 5cc4615 commit b04a6ba

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

playwright.config.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
import { defineConfig, devices } from '@playwright/experimental-ct-react'
22
import react from '@vitejs/plugin-react'
33

4+
const port = 5173
5+
const baseURL = `http://localhost:${port}`
6+
47
/**
58
* Read environment variables from file.
69
* https://github.com/motdotla/dotenv
@@ -32,7 +35,7 @@ export default defineConfig({
3235
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
3336
use: {
3437
/* Base URL to use in actions like `await page.goto('/')`. */
35-
baseURL: process.env.BASE_URL || 'http://localhost:3000',
38+
baseURL,
3639

3740
ctViteConfig: {
3841
plugins: [react()],

0 commit comments

Comments
 (0)