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 quicker
pull/325/head
Dario Piotrowicz 2023-02-20 18:25:21 +00:00
rodzic c1fc07d2ba
commit 501c840db4
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -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,