Skip to content

Commit

Permalink
Set different timeout local vs CI (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
gcatanese authored Oct 10, 2023
1 parent 22dbed6 commit 679bbbd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion playwright.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@ const config = {
/**
* Maximum time expect() should wait for the condition to be met.
* For example in `await expect(locator).toHaveText();`
*
* note: waiting longer on CI
*/
timeout: 40 * 1000
timeout: process.env.CI ? 40 * 1000 : 5 * 1000
},

/* Run tests in files in parallel */
Expand Down

0 comments on commit 679bbbd

Please sign in to comment.