diff --git a/playwright-ct.config.ts b/playwright-ct.config.ts index 46885d42f..347491d24 100644 --- a/playwright-ct.config.ts +++ b/playwright-ct.config.ts @@ -23,6 +23,16 @@ export default defineConfig({ /* Reporter to use. See https://playwright.dev/docs/test-reporters */ reporter: "html", /* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */ + expect: { + /** + * Maximum time expect() should wait for the condition to be met. + * For example in `await expect(locator).toHaveText();` + */ + timeout: 5000, + toHaveScreenshot: { + maxDiffPixelRatio: 0.02, + }, + }, use: { /* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */ trace: "on-first-retry",