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
..
2024-02-27 08:36:03 -08:00
2024-03-04 19:36:58 -08:00
2024-02-16 19:18:00 -08:00
2023-10-20 17:01:46 -07:00
2024-03-18 21:54:25 -07:00
2023-09-14 18:34:26 +02:00
2023-09-16 14:24:10 -07:00
2024-02-06 12:12:45 -08:00
2024-03-29 10:17:29 -07:00
2024-02-06 12:12:45 -08:00
2024-02-13 15:40:49 -08:00
2024-03-25 17:04:03 -07:00
2023-09-15 14:51:31 -07:00
2024-02-13 09:34:03 -08:00
2024-03-12 16:10:43 -07:00
2024-03-08 15:19:36 -08:00
2024-02-23 08:29:44 -08:00
2023-12-22 11:03:30 -08:00
2024-02-05 16:47:39 -08:00
2023-10-20 17:01:46 -07:00
2024-03-06 08:33:06 -08:00
2024-02-28 14:39:18 -08:00
2024-02-01 09:17:48 -08:00
2023-10-04 19:56:42 -07:00
2024-03-25 23:50:45 +01:00
2024-02-29 19:13:32 -08:00
2024-03-15 17:40:46 +01:00
2024-02-08 12:55:18 -08:00
2024-03-08 15:19:36 -08:00
2023-10-23 09:14:31 -07:00
2024-01-18 14:23:12 -08:00
2023-10-20 17:01:46 -07:00
2024-03-29 10:12:33 -07:00
2024-03-29 10:12:33 -07:00
2024-02-15 11:37:16 -08:00
2023-09-14 12:58:09 -07:00
2023-08-29 22:20:28 -07:00
2023-11-27 12:43:56 -08:00
2023-09-12 13:37:30 -07:00
2024-03-08 15:19:36 -08:00
2024-03-05 16:34:39 -08:00
2023-11-27 16:08:20 -08:00
2024-02-13 09:34:03 -08:00
2023-10-04 19:56:42 -07:00
2024-03-25 15:31:58 -07:00
2023-10-11 13:56:27 -07:00
2023-10-04 19:56:42 -07:00
2024-02-07 16:31:25 -08:00
2024-03-18 12:53:15 -07:00
2023-11-27 16:08:20 -08:00
2024-03-08 15:19:36 -08:00
2024-03-06 08:33:06 -08:00
2024-03-08 15:19:36 -08:00
2024-02-05 22:52:16 +01:00
2024-02-07 16:31:25 -08:00
2023-12-12 14:01:01 -08:00
2024-03-26 01:06:22 +01:00
2024-03-18 21:26:45 +01:00
2024-01-25 11:46:47 -08:00
2024-03-26 01:06:22 +01:00
2023-09-01 09:09:47 -07:00
2024-01-26 15:52:25 -08:00
2023-10-19 20:07:47 -07:00
2023-10-25 17:05:06 -07:00
2024-03-22 16:04:59 -07:00
2024-03-25 19:48:20 +01:00
2023-11-15 18:27:32 -08:00
2023-11-02 20:50:08 -07:00
2024-03-19 14:08:21 -07:00
2024-03-18 09:59:02 -07:00
2024-03-08 15:19:36 -08:00
2024-03-18 17:17:58 -07:00
2024-02-29 09:02:05 -08:00