Skip to content

Commit

Permalink
increase default playwright timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
samanthaandrews committed Sep 8, 2023
1 parent df65a5a commit 2fdc7ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/Playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}'
Expand Down
2 changes: 1 addition & 1 deletion playwright/support/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export class CustomWorld extends World {

setWorldConstructor(CustomWorld);

setDefaultTimeout(30 * 1000);
setDefaultTimeout(40 * 1000);

Before(async function (this: CustomWorld) {
const contextOptions = {
Expand Down

0 comments on commit 2fdc7ab

Please sign in to comment.