File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -3,12 +3,13 @@ import { defineConfig } from '@playwright/test';
33export default defineConfig ( {
44 testDir : './test/e2e' ,
55 webServer : {
6- command : 'npm run dev' ,
7- url : 'http://localhost:5173' ,
6+ // Serve the production build instead of Vite dev to avoid overlay and missing dev-only files
7+ command : 'npm run preview' ,
8+ url : 'http://localhost:4173' ,
89 reuseExistingServer : ! process . env . CI ,
910 } ,
1011 use : {
11- baseURL : 'http://localhost:5173 ' ,
12+ baseURL : 'http://localhost:4173 ' ,
1213 screenshot : 'only-on-failure' ,
1314 } ,
1415 reporter : [
Original file line number Diff line number Diff line change 11import { test , expect } from '@playwright/test' ;
22
3- test . beforeEach ( async ( { page } ) => {
4- await page . goto ( 'http://localhost:5173 ') ;
3+ test . beforeEach ( async ( { page, baseURL } ) => {
4+ await page . goto ( baseURL + '/ ') ;
55} ) ;
66
77test ( 'deve mostrar o modal quando o botão é clicado' , async ( { page } ) => {
You can’t perform that action at this time.
0 commit comments