File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed
Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 2727 run : npx playwright install --with-deps
2828
2929 - name : Run Cucumber tests
30- run : npx cucumber-js --tags "@addToCart "
30+ run : npx cucumber-js --tags "@registration "
3131
3232 - uses : actions/upload-artifact@v4
3333 if : ${{ !cancelled() }}
Original file line number Diff line number Diff line change @@ -30,7 +30,8 @@ export default defineConfig({
3030
3131 /* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
3232 trace : "on-first-retry" ,
33- headless : process . env . CI ? true : false ,
33+ //headless: process.env.CI ? true : false,
34+ headless : true ,
3435 screenshot : "only-on-failure" ,
3536 // viewport: null,
3637 // launchOptions: {
Original file line number Diff line number Diff line change @@ -6,10 +6,11 @@ import { CustomWorld } from "../support/world";
66setDefaultTimeout ( 60 * 1000 ) ;
77
88Before ( async function ( this : CustomWorld ) {
9- const isCI = process . env . CI === "true" ;
9+ // const isCI = process.env.CI === "true";
1010
1111 // Launch a browser and new page for each scenario
12- const browser = await chromium . launch ( { headless : isCI ? true : false } ) ; // Launch browser in headless mode in CI, headed mode locally
12+ //const browser = await chromium.launch({ headless: isCI ? true : false }); // Launch browser in headless mode in CI, headed mode locally
13+ const browser = await chromium . launch ( { headless : true } ) ;
1314 const page = await browser . newPage ( ) ;
1415
1516 // Attach to World so step defs can access via this.browser / this.page
@@ -23,4 +24,3 @@ After(async function (this: CustomWorld) {
2324 if ( this . page ) await this . page . close ( ) ;
2425 if ( this . browser ) await this . browser . close ( ) ;
2526} ) ;
26-
You can’t perform that action at this time.
0 commit comments