playwright/tests/page
Andrey Lushnikov 9c6a1a6ff0
fix: make sure screenshots work when main page context is tampered (#20615)
This patch has 2 fixes:
- screenshot code was accidentally using main page context to fetch
  page layout metrics instead of a utility context
- Avoid usage of `self.eval` inside utility context since it escapes
Firefox sandbox. This turns out to be an upstream bug:
https://bugzilla.mozilla.org/show_bug.cgi?id=1814898

Fixes #20434
2023-02-03 10:01:23 -08:00
..
elementhandle-screenshot.spec.ts-snapshots feat(webkit): roll to r1674 (#15384) 2022-07-08 11:07:06 -07:00
locator-misc-2.spec.ts-snapshots feat(webkit): roll to r1674 (#15384) 2022-07-08 11:07:06 -07:00
page-request-fulfill.spec.ts-snapshots
page-screenshot.spec.ts-snapshots test: update stale test expectations (#20423) 2023-01-27 21:52:34 -08:00
elementhandle-bounding-box.spec.ts feat(webkit): roll to r1674 (#15384) 2022-07-08 11:07:06 -07: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
elementhandle-convenience.spec.ts test: put existing retarget tests to a separate file (#16510) 2022-08-12 12:40:40 -07:00
elementhandle-eval-on-selector.spec.ts
elementhandle-misc.spec.ts feat(clear): remove `clear()` methods from all classes except `Locator` (#18703) 2022-11-10 12:29:14 -08:00
elementhandle-owner-frame.spec.ts chore: roll Electron to 16.2.8 (#16017) 2022-07-28 15:41:32 +02: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: roll Electron to 16.2.8 (#16017) 2022-07-28 15:41:32 +02:00
elementhandle-screenshot.spec.ts fix: make sure screenshots work when main page context is tampered (#20615) 2023-02-03 10:01:23 -08:00
elementhandle-scroll-into-view.spec.ts fix(click): make it work for display:contents elements (#16356) 2022-08-08 16:05:09 -07:00
elementhandle-select-text.spec.ts
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 test: put existing retarget tests to a separate file (#16510) 2022-08-12 12:40:40 -07:00
eval-on-selector-all.spec.ts
eval-on-selector.spec.ts
expect-boolean.spec.ts chore: migrate waitForSelector to not use rerunnable task (#19715) 2022-12-27 13:39:35 -08:00
expect-misc.spec.ts chore: remove toIntersectViewport for the next release (#20232) 2023-01-19 15:04:09 -08:00
expect-to-have-text.spec.ts chore: use consistent asLocator() in all logs (#18586) 2022-11-04 15:19:16 -07:00
expect-to-have-value.spec.ts test: migrate some expect() tests to be more readable (#16394) 2022-08-10 15:10:25 -07:00
frame-evaluate.spec.ts feat(innerloop): allow reusing browsers over the remote connection (#16065) 2022-07-31 14:31:17 -07:00
frame-frame-element.spec.ts fix(frameElement): should work for frames inside closed shadow root (#17055) 2022-09-06 08:52:25 -07:00
frame-goto.spec.ts feat(chromium-tip-of-tree): roll to r1080 (#20323) 2023-01-25 10:23:12 +01:00
frame-hierarchy.spec.ts test: update stale test expectations (#20423) 2023-01-27 21:52:34 -08:00
interception.spec.ts test: update stale test expectations (#20423) 2023-01-27 21:52:34 -08: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 chore: serialize circular objects (#14045) 2022-05-09 18:51:53 -07: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 fix: better formatting for sparse arrays (#20379) 2023-01-27 05:07:55 -08: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 chore: use consistent asLocator() in all logs (#18586) 2022-11-04 15:19:16 -07: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 fix(locators): frameLocator().nth serialized correctly (#18819) 2022-11-15 10:50:46 -08:00
locator-highlight.spec.ts fix(highlight): fix the testing harness to be real (#18294) 2022-10-24 15:01:48 -07:00
locator-is-visible.spec.ts test(isVisible): add a couple of basic tests (#16697) 2022-08-19 17:40:13 -07:00
locator-list.spec.ts chore: withdraw locator.enumerate (#19484) 2022-12-15 10:13:56 -08:00
locator-misc-1.spec.ts feat(api): add clear() (#18296) 2022-10-25 12:56:11 -07:00
locator-misc-2.spec.ts chore: drop `locator.viewportRatio()` method (#20131) 2023-01-19 08:46:45 -08:00
locator-query.spec.ts chore: internal selectors (#17827) 2022-10-05 08:45:10 -07:00
matchers.misc.spec.ts test: unskip working Android tests (#16171) 2022-08-02 22:51:10 +02:00
network-post-data.spec.ts test: unskip working Android tests (#16171) 2022-08-02 22:51:10 +02:00
page-accessibility.spec.ts test: make webview2 green 2022-12-14 09:47:42 +01:00
page-add-init-script.spec.ts fix(addInitScript): tolerate trailing comments (#13275) 2022-04-03 18:47:12 -07:00
page-add-script-tag.spec.ts
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: update stale test expectations (#20423) 2023-01-27 21:52:34 -08:00
page-autowaiting-no-hang.spec.ts chore: roll Electron to 16.2.8 (#16017) 2022-07-28 15:41:32 +02:00
page-basic.spec.ts test: update stale test expectations (#20423) 2023-01-27 21:52:34 -08:00
page-check.spec.ts fix(check): support all ARIA roles that could be aria-checked (#18304) 2022-10-25 06:11:11 -07:00
page-click-during-navigation.spec.ts
page-click-react.spec.ts
page-click-scroll.spec.ts test: update stale test expectations (#20423) 2023-01-27 21:52:34 -08:00
page-click-timeout-1.spec.ts
page-click-timeout-2.spec.ts
page-click-timeout-3.spec.ts
page-click-timeout-4.spec.ts
page-click.spec.ts test(events): ensure events are dispatched in individual tasks (#19687) 2022-12-27 08:59:03 -08:00
page-close.spec.ts test: add initial webview2 tests (#16827) 2022-09-07 20:09:22 +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 feat: dispatch wheel event (#15593) 2022-07-12 17:17:45 -07:00
page-drag.spec.ts test: update 'should handle custom dataTransfer' expectation (#20595) 2023-02-02 10:26:47 -08:00
page-emulate-media.spec.ts chore: allow not overriding media when creating context (#18413) 2022-10-31 09:09:52 -07:00
page-evaluate-handle.spec.ts chore: serialize circular objects (#14045) 2022-05-09 18:51:53 -07:00
page-evaluate-no-stall.spec.ts feat(innerloop): allow reusing browsers over the remote connection (#16065) 2022-07-31 14:31:17 -07:00
page-evaluate.spec.ts chore: fix typos (#20473) 2023-01-30 09:53:28 +01:00
page-event-console.spec.ts fix: better formatting for sparse arrays (#20379) 2023-01-27 05:07:55 -08:00
page-event-crash.spec.ts test: update stale test expectations (#20423) 2023-01-27 21:52:34 -08:00
page-event-load.spec.ts fix(events): avoid firing lifecycle events twice (#16055) 2022-07-29 12:44:04 -07:00
page-event-network.spec.ts chore: fix typos (#20473) 2023-01-30 09:53:28 +01:00
page-event-pageerror.spec.ts chore: roll Electron to 16.2.8 (#16017) 2022-07-28 15:41:32 +02:00
page-event-popup.spec.ts test: update stale test expectations (#20423) 2023-01-27 21:52:34 -08:00
page-event-request.spec.ts
page-expose-function.spec.ts test: add initial webview2 tests (#16827) 2022-09-07 20:09:22 +02:00
page-fill.spec.ts chore: make input actions not use rerunnable task (#19638) 2022-12-24 10:40:36 -08:00
page-focus.spec.ts tests(fixit): garden win/webkit/input tests (#14721) 2022-06-08 14:13:39 -08:00
page-goto.spec.ts test: update stale test expectations (#20423) 2023-01-27 21:52:34 -08:00
page-history.spec.ts test: add a test for bfcache and history navigations (#17796) 2022-10-03 19:13:28 -07:00
page-keyboard.spec.ts chore: upgrade internal types to support TypeScript 4.9.3 (#19280) 2022-12-05 17:22:25 -08:00
page-mouse.spec.ts fix: noWaitAfter option for hover (#17856) 2022-10-07 12:43:48 -07:00
page-navigation.spec.ts fix: do not hang on submitting target=_blank form (#20458) 2023-01-30 11:13:56 -08:00
page-network-idle.spec.ts fix: make reoccurring networkidle work (#18323) 2022-10-25 13:35:18 -07:00
page-network-request.spec.ts chore: align more ESLint rules with VSCode formatting (#16647) 2022-08-18 20:12:33 +02:00
page-network-response.spec.ts test: update stale test expectations (#20423) 2023-01-27 21:52:34 -08:00
page-network-sizes.spec.ts chore: roll Electron to 16.2.8 (#16017) 2022-07-28 15:41:32 +02:00
page-request-continue.spec.ts test: update stale test expectations (#20423) 2023-01-27 21:52:34 -08:00
page-request-fallback.spec.ts chore: route.fetch(postData) (#19436) 2022-12-13 14:01:39 -08:00
page-request-fulfill.spec.ts test: update stale test expectations (#20423) 2023-01-27 21:52:34 -08:00
page-request-intercept.spec.ts feat(route): add maxRedirects option to Route.fetch (#20567) 2023-02-01 14:43:21 -08:00
page-route.spec.ts test: cannot override cookie header in continue (#16774) 2022-08-23 14:06:25 -07:00
page-screenshot.spec.ts feat(firefox-beta): roll to r1377 (#20516) 2023-02-02 07:14:18 -08:00
page-select-option.spec.ts chore: match selected options by both value and label (#19316) 2022-12-07 09:04:32 -08:00
page-set-content.spec.ts test: disable page/page-set-content.spec.ts:126 in webkit (#16596) 2022-08-16 15:31:30 -07: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 test: enable test on webkit (#20404) 2023-01-26 10:13:21 -08:00
page-strict.spec.ts fix(codegen): update priorites in selector generator (#18688) 2022-11-09 17:22:13 -08:00
page-wait-for-function.spec.ts
page-wait-for-load-state.spec.ts test: update stale test expectations (#20423) 2023-01-27 21:52:34 -08:00
page-wait-for-navigation.spec.ts test: update tests for waituntil:commit (#20042) 2023-01-11 10:16:51 -08:00
page-wait-for-request.spec.ts test: increase small timeouts to accomodate two workers (#15257) 2022-06-30 09:05:39 -07:00
page-wait-for-response.spec.ts test: increase small timeouts to accomodate two workers (#15257) 2022-06-30 09:05:39 -07:00
page-wait-for-selector-1.spec.ts chore: migrate waitForSelector to not use rerunnable task (#19715) 2022-12-27 13:39:35 -08:00
page-wait-for-selector-2.spec.ts chore: migrate waitForSelector to not use rerunnable task (#19715) 2022-12-27 13:39:35 -08:00
page-wait-for-url.spec.ts test: update tests for waituntil:commit (#20042) 2023-01-11 10:16:51 -08:00
pageTest.ts test: add initial webview2 tests (#16827) 2022-09-07 20:09:22 +02:00
pageTestApi.ts feat: allow options in automatic screenshots (#19143) 2022-12-07 08:45:33 -08:00
queryselector.spec.ts test: rename #smoke to @smoke as test tags (#12652) 2022-03-10 19:42:52 +01:00
retarget.spec.ts test: add more tests for retarget behavior (#16513) 2022-08-12 16:29:13 -07:00
selectors-css.spec.ts fix(selectors): `:scope` combined with other css should work (#18324) 2022-10-25 14:31:39 -07:00
selectors-frame.spec.ts chore: internal selectors (#17827) 2022-10-05 08:45:10 -07:00
selectors-get-by.spec.ts fix(locators): properly escape slash inside attributes (#20510) 2023-01-30 13:27:41 -08:00
selectors-misc.spec.ts test: update stale test expectations (#20423) 2023-01-27 21:52:34 -08:00
selectors-react.spec.ts chore: fix typos (#20473) 2023-01-30 09:53:28 +01:00
selectors-register.spec.ts feat(innerloop): allow reusing browsers over the remote connection (#16065) 2022-07-31 14:31:17 -07:00
selectors-role.spec.ts fix(role): update allowsNameFromContent to closer align with blink/gecko (#19692) 2022-12-27 09:06:46 -08:00
selectors-text.spec.ts fix(selectors): hasText and getByText exact match should consider full text (#18260) 2022-10-21 16:29:45 -07:00
selectors-vue.spec.ts test: unflake React.js and Vue tests (#15264) 2022-06-30 07:00:05 -07:00
wheel.spec.ts test: unflake some wheel tests (#18412) 2022-10-28 13:35:09 -07:00
workers.spec.ts test: unskip passing firefox tests (#16233) 2022-08-03 17:43:00 -07:00