playwright/packages
Hansanto a950a7b86b
feat: Support intervals arg for toPass (#30037)
Fixes #30040

# Context

In the `playwright.config` file, we can custom the default `timeout`
property for `expect.toPass` by the property:

```ts title='playwright.config.ts'
export default defineConfig({
  // ...
  expect: {
    toPass: {
      timeout: 60_000,
    },
  },
});
```

However, we can't customize the `intervals` option. So the default value
is always `[100, 250, 500, 1000]`.

# Goal

Add the possibility to customize the intervals option from the
`playwright.config` file.

```ts title='playwright.config.ts'
export default defineConfig({
  // ...
  expect: {
    toPass: {
      timeout: 60_000,
      intervals: [1000, 2000, 3000]
    },
  },
});
```
2024-03-29 10:17:29 -07:00
..
html-reporter chore: remove unused botName from types (#30172) 2024-03-28 16:16:15 -07:00
playwright feat: Support intervals arg for toPass (#30037) 2024-03-29 10:17:29 -07:00
playwright-browser-chromium chore: mark version 1.44.0-next (#30129) 2024-03-26 13:44:10 -07:00
playwright-browser-firefox chore: mark version 1.44.0-next (#30129) 2024-03-26 13:44:10 -07:00
playwright-browser-webkit chore: mark version 1.44.0-next (#30129) 2024-03-26 13:44:10 -07:00
playwright-chromium chore: mark version 1.44.0-next (#30129) 2024-03-26 13:44:10 -07:00
playwright-core feat(webkit): roll to r1994 (#30171) 2024-03-28 21:44:19 +01:00
playwright-ct-core chore: hide internal commands (#30170) 2024-03-28 12:19:03 -07:00
playwright-ct-react chore: mark version 1.44.0-next (#30129) 2024-03-26 13:44:10 -07:00
playwright-ct-react17 chore: mark version 1.44.0-next (#30129) 2024-03-26 13:44:10 -07:00
playwright-ct-solid chore: mark version 1.44.0-next (#30129) 2024-03-26 13:44:10 -07:00
playwright-ct-svelte chore: mark version 1.44.0-next (#30129) 2024-03-26 13:44:10 -07:00
playwright-ct-vue chore: mark version 1.44.0-next (#30129) 2024-03-26 13:44:10 -07:00
playwright-ct-vue2 chore: mark version 1.44.0-next (#30129) 2024-03-26 13:44:10 -07:00
playwright-firefox chore: mark version 1.44.0-next (#30129) 2024-03-26 13:44:10 -07:00
playwright-test chore: mark version 1.44.0-next (#30129) 2024-03-26 13:44:10 -07:00
playwright-webkit chore: mark version 1.44.0-next (#30129) 2024-03-26 13:44:10 -07:00
protocol/src chore: move filter params into the clearCookies (#30111) 2024-03-26 08:12:26 -07:00
recorder fix(recorder): reference Language enum for recorderTypes (#29294) 2024-02-01 13:48:30 -08:00
trace/src feat(trace): show target point for raw mouse apis (#28459) 2023-12-07 06:27:49 -08:00
trace-viewer fix: UI Mode tags without theme applied (#30138) 2024-03-27 16:46:26 +01:00
web chore: split ui mode view into files (#30029) 2024-03-20 16:00:35 -07:00
.eslintrc.js chore: replace process.exit with graceful closure (#24242) 2023-07-24 08:29:29 -07:00