@@ -2,15 +2,11 @@ import path from 'node:path';
22import { defineConfig , devices } from '@playwright/test' ;
33import baseConfig from '../playwright.config' ;
44
5- const PORT = 3001 ;
6- const BASE_URL = `http://localhost:${ PORT } ` ;
7-
85const buildCommand = [
96 'INCLUDE_AUTH_PAGES=true' ,
10- `NOTIFY_DOMAIN_NAME=localhost:${ PORT } ` ,
117 'NEXT_PUBLIC_TIME_TILL_LOGOUT_SECONDS=25' ,
128 'NEXT_PUBLIC_PROMPT_SECONDS_BEFORE_LOGOUT=5' ,
13- ` npm run build && npm run start -- -- -p ${ PORT } ` ,
9+ ' npm run build && npm run start' ,
1410] . join ( ' ' ) ;
1511
1612export default defineConfig ( {
@@ -25,7 +21,7 @@ export default defineConfig({
2521 name : 'component:setup' ,
2622 testMatch : 'component.setup.ts' ,
2723 use : {
28- baseURL : BASE_URL ,
24+ baseURL : 'http://localhost:3000' ,
2925 ...devices [ 'Desktop Chrome' ] ,
3026 headless : true ,
3127 screenshot : 'only-on-failure' ,
@@ -36,7 +32,7 @@ export default defineConfig({
3632 testMatch : 'template-mgmt-logout-warning.component.modal.spec.ts' ,
3733 use : {
3834 screenshot : 'only-on-failure' ,
39- baseURL : BASE_URL ,
35+ baseURL : 'http://localhost:3000' ,
4036 ...devices [ 'Desktop Chrome' ] ,
4137 headless : true ,
4238 storageState : path . resolve ( __dirname , '../.auth/user.json' ) ,
@@ -56,7 +52,7 @@ export default defineConfig({
5652 timeout : 2 * 60 * 1000 , // 2 minutes
5753 command : buildCommand ,
5854 cwd : path . resolve ( __dirname , '../../../..' ) ,
59- url : ` ${ BASE_URL } / templates/create-and-submit-templates` ,
55+ url : 'http://localhost:3000/ templates/create-and-submit-templates' ,
6056 reuseExistingServer : ! process . env . CI ,
6157 stderr : 'pipe' ,
6258 } ,
0 commit comments