Dmitry Gozman
a7b2b04588
fix(getByRole): name and exact ( #18719 )
...
Following the `getByText()` and other methods:
- By default, matching is substring and case-insensitive. Before, it was
only case-insensitive, but not substring.
- With new option `exact: true`, matching is full string and
case-sensitive.
- Matching always normalizes whitespace.
- Codegen generates `exact: false` by default.
- `internal:role` treats `[name="foo"i]` as non-exact match.
Various fixes:
- Updated `getByRole` docs to match the reality.
- Locator generator edge cases.
2022-11-11 15:58:36 -08:00
..
2022-07-08 11:07:06 -07:00
2022-07-08 11:07:06 -07:00
2022-07-08 11:07:06 -07:00
2022-07-08 11:07:06 -07:00
2022-08-12 12:40:40 -07:00
2022-11-10 12:29:14 -08:00
2022-07-28 15:41:32 +02:00
2022-07-28 15:41:32 +02:00
2022-07-28 15:41:32 +02:00
2022-08-08 16:05:09 -07:00
2022-08-12 12:40:40 -07:00
2022-11-04 15:19:16 -07:00
2022-09-20 17:11:12 -07:00
2022-11-04 15:19:16 -07:00
2022-08-10 15:10:25 -07:00
2022-07-31 14:31:17 -07:00
2022-09-06 08:52:25 -07:00
2022-08-03 10:51:45 +02:00
2022-07-28 15:41:32 +02:00
2022-07-28 15:41:32 +02:00
2022-11-04 15:19:16 -07:00
2022-11-04 15:19:16 -07:00
2022-10-24 15:01:48 -07:00
2022-08-19 17:40:13 -07:00
2022-10-25 12:56:11 -07:00
2022-09-07 20:09:22 +02:00
2022-10-05 08:45:10 -07:00
2022-08-02 22:51:10 +02:00
2022-08-02 22:51:10 +02:00
2022-09-28 12:13:07 +02:00
2022-10-24 16:03:56 -07:00
2022-07-28 15:41:32 +02:00
2022-09-07 20:09:22 +02:00
2022-10-25 06:11:11 -07:00
2022-11-04 10:39:51 -07:00
2022-09-07 20:09:22 +02:00
2022-09-07 20:09:22 +02:00
2022-07-12 17:17:45 -07:00
2022-11-07 15:35:21 -08:00
2022-10-31 09:09:52 -07:00
2022-07-31 14:31:17 -07:00
2022-09-13 18:21:07 +02:00
2022-08-26 08:56:31 -07:00
2022-09-07 20:09:22 +02:00
2022-07-29 12:44:04 -07:00
2022-09-28 17:01:13 -07:00
2022-07-28 15:41:32 +02:00
2022-09-07 20:09:22 +02:00
2022-09-07 20:09:22 +02:00
2022-11-10 12:29:14 -08:00
2022-06-08 14:13:39 -08:00
2022-09-02 15:45:01 -07:00
2022-10-03 19:13:28 -07:00
2022-08-18 20:12:33 +02:00
2022-10-07 12:43:48 -07:00
2022-10-25 13:35:18 -07:00
2022-08-18 20:12:33 +02:00
2022-08-02 22:51:10 +02:00
2022-07-28 15:41:32 +02:00
2022-09-07 20:09:22 +02:00
2022-09-04 10:52:20 -07:00
2022-09-20 18:41:51 -07:00
2022-07-28 15:41:32 +02:00
2022-08-23 14:06:25 -07:00
2022-11-07 15:35:21 -08:00
2022-08-18 20:12:33 +02:00
2022-08-16 15:31:30 -07:00
2022-09-20 12:58:26 -07:00
2022-11-09 17:22:13 -08:00
2022-08-18 20:12:33 +02:00
2022-11-07 15:35:21 -08:00
2022-06-30 09:05:39 -07:00
2022-06-30 09:05:39 -07:00
2022-11-04 15:19:16 -07:00
2022-11-04 15:19:16 -07:00
2022-09-07 20:09:22 +02:00
2022-09-07 20:09:22 +02:00
2022-08-12 16:29:13 -07:00
2022-10-25 14:31:39 -07:00
2022-10-05 08:45:10 -07:00
2022-11-11 15:58:36 -08:00
2022-10-05 08:45:10 -07:00
2022-06-30 07:00:05 -07:00
2022-07-31 14:31:17 -07:00
2022-11-11 15:58:36 -08:00
2022-10-21 16:29:45 -07:00
2022-06-30 07:00:05 -07:00
2022-10-28 13:35:09 -07:00
2022-08-03 17:43:00 -07:00