kopia lustrzana https://github.com/cloudflare/wildebeest
make playwright fail faster locally
locally playwright is very fast and not flaky, so in order to have a quicker development cycle reduce the playwright timeouts so that if something is off playwright can fail tests quickerpull/325/head
rodzic
c1fc07d2ba
commit
501c840db4
|
@ -13,13 +13,13 @@ import { devices } from '@playwright/test'
|
|||
const config: PlaywrightTestConfig = {
|
||||
testDir: './ui-e2e-tests',
|
||||
/* Maximum time one test can run for. */
|
||||
timeout: 30 * 1000,
|
||||
timeout: (process.env.CI ? 30 : 5) * 1000,
|
||||
expect: {
|
||||
/**
|
||||
* Maximum time expect() should wait for the condition to be met.
|
||||
* For example in `await expect(locator).toHaveText();`
|
||||
*/
|
||||
timeout: 5000,
|
||||
timeout: process.env.CI ? 5000 : 500,
|
||||
},
|
||||
/* Run tests in files in parallel */
|
||||
fullyParallel: true,
|
||||
|
|
Ładowanie…
Reference in New Issue