diff --git a/.github/workflows/Playwright.yml b/.github/workflows/Playwright.yml index fc627bbf..ce972e94 100644 --- a/.github/workflows/Playwright.yml +++ b/.github/workflows/Playwright.yml @@ -29,8 +29,9 @@ jobs: run: npx playwright install --with-deps - name: Set the world parameters as an env var + # WORLD_PARAMETERS set here will override anything set in cucumber.json run: | - echo "WORLD_PARAMETERS={\"appUrl\": \"https://drb-qa.nypl.org\", \"headless\": true}" >> $GITHUB_ENV + echo "WORLD_PARAMETERS={\"headless\": true}" >> $GITHUB_ENV - name: Run Cucumber tests run: npm run cucumber -- playwright/features --world-parameters '${{ env.WORLD_PARAMETERS }}' diff --git a/playwright/support/setup.ts b/playwright/support/setup.ts index 2258e846..03f6e97d 100644 --- a/playwright/support/setup.ts +++ b/playwright/support/setup.ts @@ -55,7 +55,7 @@ export class CustomWorld extends World { setWorldConstructor(CustomWorld); -setDefaultTimeout(30 * 1000); +setDefaultTimeout(40 * 1000); Before(async function (this: CustomWorld) { const contextOptions = {