playwright/tests/page
Dmitry Gozman a8d4a8aa52
fix(text selector): ignore non-leading quote when parsing (#13170)
Previously, any unpaired quote in the text selector "escaped"
everything till the end of the selector string, and so any
subsequent chained selectors, including ">>" separator were ignored.

An example of misbehaving selector: `text=19" >> nth=1`.

Now, when text selector contains a non-leading quote, selector parser
does not assume it should escape ">>" separator and correctly
tokenizes all selectors from the chain.

Note that this behavior is a workaround for the fact that our
text selectors is somewhat poorly defined in this area. That said,
this workaround seems to be safe enough. It still does not work for
unpaired leading quotes like this: `text="19 >> nth=1`.
2022-03-30 09:33:32 -07:00
..
elementhandle-screenshot.spec.ts-snapshots test: roll to folio@0.4.0-alpha28 (#6918) 2021-06-04 20:54:58 -07:00
locator-misc-2.spec.ts-snapshots test: fix some failing locators tests (#7989) 2021-08-04 23:36:27 +02:00
page-request-fulfill.spec.ts-snapshots test: roll to folio@0.4.0-alpha28 (#6918) 2021-06-04 20:54:58 -07:00
page-screenshot.spec.ts-snapshots feat(screenshot): introduce new "fonts" option for screenshots (#12661) 2022-03-10 16:54:36 -08:00
elementhandle-bounding-box.spec.ts feat(webkit): roll to r1592 (#11261) 2022-01-10 05:02:07 -08:00
elementhandle-click.spec.ts test: rename #smoke to @smoke as test tags (#12652) 2022-03-10 19:42:52 +01:00
elementhandle-content-frame.spec.ts test: cleanup bad usages of pageTest (#6430) 2021-05-06 07:08:22 -07:00
elementhandle-convenience.spec.ts fix: isDisabled check with option/optgroup (#12437) 2022-03-01 18:10:16 +01:00
elementhandle-eval-on-selector.spec.ts chore: enable object-curly-spacing in ESLint (#9168) 2021-09-27 18:58:08 +02:00
elementhandle-misc.spec.ts feat(api): introduce setChecked convenience method (#8525) 2021-08-29 20:00:40 -07:00
elementhandle-owner-frame.spec.ts test: cleanup bad usages of pageTest (#6430) 2021-05-06 07:08:22 -07:00
elementhandle-press.spec.ts feat(webkit): roll to r1616 (#12541) 2022-03-06 12:22:47 +01:00
elementhandle-query-selector.spec.ts chore: enable object-curly-spacing in ESLint (#9168) 2021-09-27 18:58:08 +02:00
elementhandle-screenshot.spec.ts chore: enable object-curly-spacing in ESLint (#9168) 2021-09-27 18:58:08 +02:00
elementhandle-scroll-into-view.spec.ts test: rename #smoke to @smoke as test tags (#12652) 2022-03-10 19:42:52 +01:00
elementhandle-select-text.spec.ts test: prepare test to use options as passed (#6557) 2021-05-13 10:22:23 -07:00
elementhandle-type.spec.ts feat(webkit): roll to r1616 (#12541) 2022-03-06 12:22:47 +01:00
elementhandle-wait-for-element-state.spec.ts feat(selectors): role selector engine (#12999) 2022-03-28 09:24:58 -07:00
eval-on-selector-all.spec.ts chore: enable object-curly-spacing in ESLint (#9168) 2021-09-27 18:58:08 +02:00
eval-on-selector.spec.ts chore: enable object-curly-spacing in ESLint (#9168) 2021-09-27 18:58:08 +02:00
frame-evaluate.spec.ts test: rename #smoke to @smoke as test tags (#12652) 2022-03-10 19:42:52 +01:00
frame-frame-element.spec.ts test: rename #smoke to @smoke as test tags (#12652) 2022-03-10 19:42:52 +01:00
frame-goto.spec.ts test: rename #smoke to @smoke as test tags (#12652) 2022-03-10 19:42:52 +01:00
frame-hierarchy.spec.ts test: rename #smoke to @smoke as test tags (#12652) 2022-03-10 19:42:52 +01:00
interception.spec.ts test: rename #smoke to @smoke as test tags (#12652) 2022-03-10 19:42:52 +01:00
jshandle-as-element.spec.ts test: rename #smoke to @smoke as test tags (#12652) 2022-03-10 19:42:52 +01:00
jshandle-evaluate.spec.ts test: rename #smoke to @smoke as test tags (#12652) 2022-03-10 19:42:52 +01:00
jshandle-json-value.spec.ts test: rename #smoke to @smoke as test tags (#12652) 2022-03-10 19:42:52 +01:00
jshandle-properties.spec.ts test: rename #smoke to @smoke as test tags (#12652) 2022-03-10 19:42:52 +01:00
jshandle-to-string.spec.ts test: rename #smoke to @smoke as test tags (#12652) 2022-03-10 19:42:52 +01:00
locator-click.spec.ts test: rename #smoke to @smoke as test tags (#12652) 2022-03-10 19:42:52 +01:00
locator-convenience.spec.ts test: inputValue works for label selector (#12447) 2022-03-02 09:33:44 -08:00
locator-element-handle.spec.ts test: rename #smoke to @smoke as test tags (#12652) 2022-03-10 19:42:52 +01:00
locator-evaluate.spec.ts test: rename #smoke to @smoke as test tags (#12652) 2022-03-10 19:42:52 +01:00
locator-frame.spec.ts test: rename #smoke to @smoke as test tags (#12652) 2022-03-10 19:42:52 +01:00
locator-highlight.spec.ts test: skip highlight tests on != default mode (#12471) 2022-03-02 23:46:33 +01:00
locator-misc-1.spec.ts test: rename #smoke to @smoke as test tags (#12652) 2022-03-10 19:42:52 +01:00
locator-misc-2.spec.ts test: rename #smoke to @smoke as test tags (#12652) 2022-03-10 19:42:52 +01:00
locator-query.spec.ts test: rename #smoke to @smoke as test tags (#12652) 2022-03-10 19:42:52 +01:00
matchers.misc.spec.ts fix(expect): do not fail on navigated frames while polling (#9659) 2021-10-20 13:01:05 -07:00
network-post-data.spec.ts test: rename #smoke to @smoke as test tags (#12652) 2022-03-10 19:42:52 +01:00
page-accessibility.spec.ts test: rename #smoke to @smoke as test tags (#12652) 2022-03-10 19:42:52 +01:00
page-add-init-script.spec.ts test: rename #smoke to @smoke as test tags (#12652) 2022-03-10 19:42:52 +01:00
page-add-script-tag.spec.ts chore: enable object-curly-spacing in ESLint (#9168) 2021-09-27 18:58:08 +02:00
page-add-style-tag.spec.ts test: rename #smoke to @smoke as test tags (#12652) 2022-03-10 19:42:52 +01:00
page-autowaiting-basic.spec.ts test: enable autowaiting test on webkit (#11343) 2022-01-12 01:52:58 -08:00
page-autowaiting-no-hang.spec.ts chore: enable object-curly-spacing in ESLint (#9168) 2021-09-27 18:58:08 +02:00
page-basic.spec.ts chore: enable object-curly-spacing in ESLint (#9168) 2021-09-27 18:58:08 +02:00
page-check.spec.ts test: rename #smoke to @smoke as test tags (#12652) 2022-03-10 19:42:52 +01:00
page-click-during-navigation.spec.ts test: improve click-during-navigation (#11252) 2022-01-07 12:12:24 -08:00
page-click-react.spec.ts chore: enable object-curly-spacing in ESLint (#9168) 2021-09-27 18:58:08 +02:00
page-click-scroll.spec.ts chore: enable object-curly-spacing in ESLint (#9168) 2021-09-27 18:58:08 +02:00
page-click-timeout-1.spec.ts chore: enable object-curly-spacing in ESLint (#9168) 2021-09-27 18:58:08 +02:00
page-click-timeout-2.spec.ts test: fix visibility spelling in test (#11476) 2022-01-19 14:46:27 +01:00
page-click-timeout-3.spec.ts feat(input): perform hit target check during input (#9546) 2021-11-05 17:31:28 -07:00
page-click-timeout-4.spec.ts feat(input): perform hit target check during input (#9546) 2021-11-05 17:31:28 -07:00
page-click.spec.ts test: rename #smoke to @smoke as test tags (#12652) 2022-03-10 19:42:52 +01:00
page-close.spec.ts chore: enable object-curly-spacing in ESLint (#9168) 2021-09-27 18:58:08 +02:00
page-dialog.spec.ts test: rename #smoke to @smoke as test tags (#12652) 2022-03-10 19:42:52 +01:00
page-dispatchevent.spec.ts test: rename #smoke to @smoke as test tags (#12652) 2022-03-10 19:42:52 +01:00
page-drag.spec.ts test: rename #smoke to @smoke as test tags (#12652) 2022-03-10 19:42:52 +01:00
page-emulate-media.spec.ts test: rename #smoke to @smoke as test tags (#12652) 2022-03-10 19:42:52 +01:00
page-evaluate-handle.spec.ts chore: enable object-curly-spacing in ESLint (#9168) 2021-09-27 18:58:08 +02:00
page-evaluate-no-stall.spec.ts chore: enable object-curly-spacing in ESLint (#9168) 2021-09-27 18:58:08 +02:00
page-evaluate.spec.ts test: rename #smoke to @smoke as test tags (#12652) 2022-03-10 19:42:52 +01:00
page-event-console.spec.ts test: rename #smoke to @smoke as test tags (#12652) 2022-03-10 19:42:52 +01:00
page-event-crash.spec.ts chore: remove isContextDestroyedError heuristic (#8456) 2021-08-26 18:44:49 -07:00
page-event-network.spec.ts test: rename #smoke to @smoke as test tags (#12652) 2022-03-10 19:42:52 +01:00
page-event-pageerror.spec.ts feat(firefox): roll to r1307 (#10605) 2021-11-30 14:26:26 +01:00
page-event-popup.spec.ts test: rename #smoke to @smoke as test tags (#12652) 2022-03-10 19:42:52 +01:00
page-event-request.spec.ts test: disable flaky test on wk/ff (#10662) 2021-12-02 07:44:13 -08:00
page-expose-function.spec.ts test: rename #smoke to @smoke as test tags (#12652) 2022-03-10 19:42:52 +01:00
page-fill.spec.ts test: rename #smoke to @smoke as test tags (#12652) 2022-03-10 19:42:52 +01:00
page-focus.spec.ts test: rename #smoke to @smoke as test tags (#12652) 2022-03-10 19:42:52 +01:00
page-goto.spec.ts test: rename #smoke to @smoke as test tags (#12652) 2022-03-10 19:42:52 +01:00
page-history.spec.ts test: rename #smoke to @smoke as test tags (#12652) 2022-03-10 19:42:52 +01:00
page-keyboard.spec.ts test: rename #smoke to @smoke as test tags (#12652) 2022-03-10 19:42:52 +01:00
page-mouse.spec.ts test: rename #smoke to @smoke as test tags (#12652) 2022-03-10 19:42:52 +01:00
page-navigation.spec.ts chore: enable object-curly-spacing in ESLint (#9168) 2021-09-27 18:58:08 +02:00
page-network-idle.spec.ts chore: migrate to monorepo (#9421) 2021-10-11 16:52:17 +02:00
page-network-request.spec.ts feat(route): add cors header in route.fulfill (#12943) 2022-03-25 14:56:57 -07:00
page-network-response.spec.ts test: rename #smoke to @smoke as test tags (#12652) 2022-03-10 19:42:52 +01:00
page-network-sizes.spec.ts test: gardening (#11235) 2022-01-07 09:11:54 -08:00
page-request-continue.spec.ts fix: throw in route.continue if it is called twice (#11701) 2022-01-27 14:58:02 -08:00
page-request-fulfill.spec.ts test: mark failing android tests as fixme / fix them (#12371) 2022-02-25 22:56:51 +01:00
page-request-intercept.spec.ts test: skip test in electron 2022-02-26 00:17:37 +01:00
page-route.spec.ts feat(route): add cors header in route.fulfill (#12943) 2022-03-25 14:56:57 -07:00
page-screenshot.spec.ts feat(vrt): new option "caret" for taking screenshots (#13164) 2022-03-29 17:48:13 -07:00
page-select-option.spec.ts test: rename #smoke to @smoke as test tags (#12652) 2022-03-10 19:42:52 +01:00
page-set-content.spec.ts test: rename #smoke to @smoke as test tags (#12652) 2022-03-10 19:42:52 +01:00
page-set-extra-http-headers.spec.ts test: rename #smoke to @smoke as test tags (#12652) 2022-03-10 19:42:52 +01:00
page-set-input-files.spec.ts feat: large files upload in ff and wk (#12937) 2022-03-25 13:26:12 -07:00
page-strict.spec.ts feat(codegen): make selector generator strict (#11856) 2022-02-04 07:34:23 -08:00
page-wait-for-function.spec.ts fix(evaluate): reject all context operations when frame detaches (#9987) 2021-11-03 10:44:50 -07:00
page-wait-for-load-state.spec.ts feat: add "commit" to possible waitUntil options (#9892) 2021-11-01 17:12:19 -07:00
page-wait-for-navigation.spec.ts fix(webkit): handle will/didCheckPolicyForNavigation (#11631) 2022-01-27 14:58:43 -08:00
page-wait-for-request.spec.ts fix(errors): waitForEvent/Request/Response should point to the api call (#11229) 2022-01-06 14:47:52 -08:00
page-wait-for-response.spec.ts test: response event for cached img elements (#11506) 2022-01-20 14:38:19 +01:00
page-wait-for-selector-1.spec.ts chore(frame-selector): add more tests, use frame logic in element handle (#10097) 2021-11-05 16:36:01 -07:00
page-wait-for-selector-2.spec.ts test: out-of-viewport should be considered visible (#13134) 2022-03-28 16:10:16 -07:00
page-wait-for-url.spec.ts feat: add "commit" to possible waitUntil options (#9892) 2021-11-01 17:12:19 -07:00
pageTest.ts feat(test runner): replace declare/define with "options" (#10293) 2021-11-18 15:45:52 -08:00
pageTestApi.ts test: migrate to upstream fixtures (#9835) 2021-10-28 08:31:30 -07:00
queryselector.spec.ts test: rename #smoke to @smoke as test tags (#12652) 2022-03-10 19:42:52 +01:00
selectors-css.spec.ts test: rename #smoke to @smoke as test tags (#12652) 2022-03-10 19:42:52 +01:00
selectors-frame.spec.ts test: rename #smoke to @smoke as test tags (#12652) 2022-03-10 19:42:52 +01:00
selectors-misc.spec.ts feat(locator): "has" option (#11411) 2022-02-02 16:55:50 -08:00
selectors-react.spec.ts feat(selectors): support regular expressions in attribute selectors (#12960) 2022-03-22 17:00:56 -07:00
selectors-role.spec.ts feat(selectors): role selector engine (#12999) 2022-03-28 09:24:58 -07:00
selectors-text.spec.ts fix(text selector): ignore non-leading quote when parsing (#13170) 2022-03-30 09:33:32 -07:00
selectors-vue.spec.ts feat(selectors): support regular expressions in attribute selectors (#12960) 2022-03-22 17:00:56 -07:00
wheel.spec.ts test: rename #smoke to @smoke as test tags (#12652) 2022-03-10 19:42:52 +01:00
workers.spec.ts test: rename #smoke to @smoke as test tags (#12652) 2022-03-10 19:42:52 +01:00