Yury Semikhatsky
ed19e5403b
feat: merge config properties ( #23071 )
2023-05-16 15:15:11 -07:00
Pavel Feldman
37b2853b7b
chore: fix the test view mobile layout ( #23061 )
...
Fixes https://github.com/microsoft/playwright/issues/23036
2023-05-16 12:47:37 -07:00
Dmitry Gozman
62146b946c
fix(codegen): ignore previously hovered detached nodes ( #23057 )
...
Fixes #23043 .
2023-05-16 11:13:19 -07:00
Playwright Service
aa6eb41466
feat(webkit): roll to r1848 ( #23032 )
...
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Max Schmitt <max@schmitt.mx>
2023-05-16 12:13:58 +02:00
Dmitry Gozman
73f9f81db4
feat(locators): allow ambiguous locators when parsing ( #23034 )
...
This supports locators like `nth(0)` and `locator('div', { hasText:
'foo' })` that are not canonical, but still work.
Fixes #22990 , #22965 .
2023-05-15 19:42:51 -07:00
Dmitry Gozman
f469e4b1eb
fix(expect): mark step as failed when async custom matcher throws ( #23035 )
...
Fixes #23021 .
2023-05-15 19:37:12 -07:00
Pavel Feldman
bf1df9678f
chore: do not load code for babeling twice ( #23025 )
2023-05-15 15:12:10 -07:00
Max Schmitt
edd003c230
chore: validate expected image buffer when comparing images ( #23030 )
...
Fixes https://github.com/microsoft/playwright/issues/23012
2023-05-15 23:32:16 +02:00
Yury Semikhatsky
6c75095896
chore: blob report does not print to console ( #23027 )
2023-05-15 12:46:17 -07:00
Max Schmitt
17ab777db5
chore: set min viewport for WK on Win to 250x240 ( #22969 )
...
Follow-up for https://github.com/microsoft/playwright/pull/22956 .
2023-05-14 16:59:15 +02:00
Pavel Feldman
c9d5b05440
docs: document subdomain cookie matching ( #23007 )
...
Fixes https://github.com/microsoft/playwright/issues/22977
2023-05-12 19:15:51 -07:00
Pavel Feldman
4c4085e105
chore: partially hide built-in fixture steps ( #23005 )
2023-05-12 19:15:31 -07:00
Yury Semikhatsky
576d91fe80
fix: unique resource names between shards ( #23004 )
2023-05-12 18:21:43 -07:00
Pavel Feldman
083d13a13d
chore: surface syntax error in ui mode ( #22982 )
...
Fixes https://github.com/microsoft/playwright/issues/22863
2023-05-12 14:23:22 -07:00
Dmitry Gozman
9472f79d32
fix(reuse): reset mouse position in Firefox ( #22973 )
...
Otherwise, Firefox sometimes keeps the current position and triggers
unexpected hover effects.
Fixes #22432 .
2023-05-12 13:21:49 -07:00
Andrey Lushnikov
bf1aba885b
chore: fix lint
2023-05-12 13:04:11 -07:00
Andrey Lushnikov
eea7a8e638
browser(firefox): roll Firefoxes ( #22998 )
...
Fixes https://github.com/microsoft/playwright/issues/15405
Fixes https://github.com/microsoft/playwright/issues/22618
2023-05-12 11:27:19 -07:00
Playwright Service
ba0c4951c3
feat(firefox-beta): roll to r1408 ( #22978 )
...
Fixes https://github.com/microsoft/playwright/issues/21760
---------
Signed-off-by: Andrey Lushnikov <aslushnikov@gmail.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Andrey Lushnikov <aslushnikov@gmail.com>
2023-05-12 09:27:08 -07:00
Yury Semikhatsky
3ccec7eae5
feat(merge): generate html report with links to remote resources ( #22968 )
2023-05-12 09:26:04 -07:00
Playwright Service
f96309776c
feat(firefox-beta): roll to r1407 ( #22976 )
...
Fixes https://github.com/microsoft/playwright/issues/22581
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-05-12 07:39:42 -07:00
Pavel Feldman
e6d8cf9693
chore: include plugin list into the cache digest ( #22946 )
...
Fixes https://github.com/microsoft/playwright/issues/22931
2023-05-11 21:09:15 -07:00
Dmitry Gozman
9ffe33fae8
feat(test runner): support tsconfig.extends array ( #22975 )
...
Fixes #22151 .
2023-05-11 19:18:13 -07:00
Pavel Feldman
59b9a39740
chore: add string attachments to trace ( #22921 )
2023-05-11 16:32:32 -07:00
Pavel Feldman
49f647ca57
chore: opt out from the compact mode in babel ( #22974 )
2023-05-11 16:31:28 -07:00
Dmitry Gozman
44a934c160
feat(test runner): support .cjs
and .cts
files ( #22971 )
...
Fixes #22579 .
2023-05-11 15:41:50 -07:00
Andrey Lushnikov
d7f5f1f5fe
feat: default screenshot jpeg quality to 80 ( #22966 )
...
Fixes https://github.com/microsoft/playwright/issues/22436
2023-05-11 11:09:19 -07:00
Pavel Feldman
e41b21dc7b
chore: update navigation and timers docs ( #22941 )
2023-05-11 09:56:48 -07:00
Andrey Lushnikov
4d41535081
feat(ff-beta): roll Firefox beta to 1406 ( #22963 )
2023-05-11 09:37:08 -07:00
Max Schmitt
00187172f2
chore: introduce minimal viewport for WebKit/Windows/headed ( #22956 )
...
Fixes https://github.com/microsoft/playwright/issues/22616
2023-05-11 17:54:05 +02:00
Playwright Service
d17d43c4fa
feat(firefox): roll to r1406 ( #22962 )
...
Fixes https://github.com/microsoft/playwright/issues/22580
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-05-11 08:18:51 -07:00
Dmitry Gozman
f2ad5bbfbb
fix(isVisible): return false
during navigation ( #22943 )
...
Instead of throwing "Execution context was destroyed" error.
Drive-by: improve internal error messages for `ScopedRace` errors.
Fixes #22925 .
2023-05-10 16:56:59 -07:00
Yury Semikhatsky
c9dad439cd
chore: write uncompressed blob report ( #22945 )
2023-05-10 15:08:53 -07:00
Playwright Service
7e2a35ead4
feat(webkit): roll to r1847 ( #22920 )
2023-05-10 12:11:42 -07:00
Dmitry Gozman
80f46892cd
fix(getByLabel): ignore empty aria-label ( #22935 )
...
Accessible name computation ignores empty aria-label, and so should
getByLabel.
Fixes #22915 .
2023-05-10 10:38:46 -07:00
Debbie O'Brien
7a8eb15820
docs: add titles to config snippets ( #22910 )
...
Docs PR: https://github.com/microsoft/playwright.dev/pull/1039
---------
Co-authored-by: Max Schmitt <max@schmitt.mx>
2023-05-10 18:38:12 +02:00
Ruben
f9eeaa2b75
docs: update import in code example ( #22591 )
2023-05-10 15:18:20 +02:00
Alexander Sorokin
cbf4f39957
fix: React selectors should work after unmount ( #22750 )
...
Fixes #22729
2023-05-10 06:18:01 -07:00
Andrey Lushnikov
3b2d247c74
fix: avoid using os.userInfo()
( #22826 )
...
The `os.userInfo()` call might throw on POSIX if there is no
user info for the current `uid`. This might happen, if the docker
is launched like this:
```
docker run --rm -u 1234:1234 -it mcr.microsoft.com/playwright:v1.32.0 node -e 'console.log(os.userInfo().username)'
```
So instead of using `os.userInfo()`, rely on effective user id.
Fixes https://github.com/microsoft/playwright/issues/22721
2023-05-10 05:13:04 -07:00
Max Schmitt
1541206482
test: use custom browser binary for connnect tests ( #22900 )
...
Fixes https://github.com/microsoft/playwright/issues/22898
2023-05-10 09:30:56 +02:00
Pavel Feldman
5e0574dc44
chore: list attachments in the trace ( #22919 )
...
Fixes https://github.com/microsoft/playwright/issues/22736
2023-05-09 17:53:01 -07:00
Dmitry Gozman
cd49f5c466
feat(typescript): align with --moduleResolution=bundler
( #22887 )
...
This relaxes import requirements and allows importing `.ts` files
without an extension in CJS and ESM modes.
Fixes #22169 .
2023-05-09 16:26:29 -07:00
Yury Semikhatsky
75e106745f
fix(fetch): support proxy.bypass ( #22914 )
...
Fixes #21916
2023-05-09 14:51:49 -07:00
Pavel Feldman
0bf297f523
fix(trace): merge step hierarchies ( #22916 )
2023-05-09 14:50:28 -07:00
Playwright Service
2704601d0c
feat(webkit): roll to r1845 ( #22895 )
...
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-05-09 10:47:17 +02:00
Alex Neo
5bd5cea705
feat(html): describe labels ( #22870 )
2023-05-08 18:59:01 -07:00
Pavel Feldman
b10cc03314
chore: render parse errors in the UI mode ( #22888 )
...
Fixes: https://github.com/microsoft/playwright/issues/22863
2023-05-08 18:51:27 -07:00
Pavel Feldman
5fb426e7db
fix(webkit): do not update console counter on unhandled rejections ( #22890 )
...
Fixes https://github.com/microsoft/playwright/issues/22886
2023-05-08 18:50:40 -07:00
Pavel Feldman
9771b1ee74
chore: show steps for fixtures ( #22860 )
...
Fixes https://github.com/microsoft/playwright/issues/22565
2023-05-06 10:25:32 -07:00
Dmitry Gozman
03616e976e
fix(deps): --repeat-each
should not apply to dependencies ( #22858 )
...
Fixes #21778 .
2023-05-05 16:59:39 -07:00
Pavel Feldman
efad19b332
chore: render test steps in the trace ( #22837 )
2023-05-05 15:12:18 -07:00
Dmitry Gozman
641e223ca8
fix(server): explicit allowlist for launch options ( #22855 )
...
Some options, usually paths, do not make sense when running remotely.
Fixes #22844 .
2023-05-05 13:07:06 -07:00
Yury Semikhatsky
02a1a2e6a9
fix(webkit): define window.GestureEvent ( #22768 )
...
Polyfill GestureEvent so that Safari detection works.
Fixes #22735
2023-05-05 11:37:28 -07:00
Dmitry Gozman
160888df99
feat(locators): reland locator.and(locator)
( #22850 )
...
Removed in #22223 .
Fixes #22585 .
2023-05-05 11:14:01 -07:00
Dmitry Gozman
42328478ea
feat: make console/dialog events based on subscription ( #22835 )
...
This way we do not send events from the server unless the client is
interested.
Fixes #22621 .
2023-05-05 11:12:33 -07:00
Dmitry Gozman
2393602e8c
fix(reuse): ignore late bindings after dispatchers were disposed ( #22838 )
...
When reusing the context, we first dispose all dispatchers, and then
reset the page/context. If bindings are triggered during the reset, they
try to send messages on disposed dispatchers.
Since there is no way to unregister bindings, just ignore them after
disposal.
Fixes #22803 .
2023-05-05 11:10:53 -07:00
Dmitry Gozman
236c329ea9
feat: browserContext.on('dialog'/'console') ( #22805 )
...
Relanding #22033 and #21943 .
2023-05-04 15:11:46 -07:00
Playwright Service
ae3398d404
feat(webkit): roll to r1843 ( #22831 )
...
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-05-04 23:14:38 +02:00
Pavel Feldman
9c25a04267
chore: use custom JSX runtime to stub-out erroneous JSX usage ( #22827 )
...
Fixes https://github.com/microsoft/playwright/issues/22789
2023-05-04 11:44:59 -07:00
Playwright Service
7e3f011824
feat(webkit): roll to r1842 ( #22825 )
...
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-05-04 20:02:39 +02:00
Playwright Service
600bcc223f
feat(chromium-tip-of-tree): roll to r1111 ( #22821 )
...
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-05-04 17:07:08 +02:00
Pavel Feldman
78203bf48d
chore: ensure error location is present ( #22804 )
...
Partial fix for https://github.com/microsoft/playwright/issues/22782
2023-05-03 18:45:33 -07:00
Dmitry Gozman
ca3629186c
fix(role): fix native controls text alternative when aria-labelledby
is present ( #22800 )
...
Fixes #22779 .
2023-05-03 16:09:08 -07:00
Dmitry Gozman
4edd023644
fix(tsconfig): fallback to default *:*
path mapping when baseUrl
is present ( #22802 )
...
According to
https://www.typescriptlang.org/docs/handbook/module-resolution.html#base-url ,
`baseUrl` affects all non-relative imports. Additional `paths` mapping
can be specified for more control. However, if none of the `paths`
matches, it still falls back to the default `*:*` mapping. Confirmed by
invoking `tsc` with different configs.
Fixes #22663 .
2023-05-03 16:08:06 -07:00
Pavel Feldman
9a61a55ea1
chore: nest api steps by time ( #22801 )
...
Fixes https://github.com/microsoft/playwright/issues/22786
2023-05-03 16:04:20 -07:00
Pavel Feldman
b868f3a9d0
chore: extend raw stack ( #22794 )
2023-05-03 13:53:02 -07:00
Yury Semikhatsky
2233b352b6
fix(merger): pass onError to the reporter ( #22775 )
2023-05-03 09:08:09 -07:00
Dmitry Gozman
10ce7af411
fix(steps): step should not get an unrelated error ( #22773 )
...
Previously, we would use any error that was added during the step
execution as an error for this particular step.
This produces false positives, for example failing `page.click` call
that happened during `context` teardown was producing an error and
marking teardown is failed. However, in reality, the test itself has
failed, while teardown has not.
New approach uses test step hierarchy to inherit errors from child steps
to the parent step. This does not regress the original fix where
`expect.soft` errors are surfaced in the parent step.
See also #19973 that introduced the original logic.
2023-05-02 18:50:00 -07:00
Dmitry Gozman
3c724c2498
fix: do not crash upon download in unknown page ( #22774 )
...
Fixes #22551 .
2023-05-02 18:49:04 -07:00
Dmitry Gozman
8f09935e81
fix(test runner): separate test fixture scope for beforeAll/afterAll hooks ( #22746 )
...
There was a single test fixture scope that covers all hooks, modifiers
and test function. Now beforeAll-like modifiers, beforeAll and afterAll
hooks get a scope each.
Fixes #22256 .
2023-05-02 11:04:51 -07:00
Playwright Service
57db2a0734
feat(chromium-tip-of-tree): roll to r1110 ( #22757 )
...
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-05-02 17:11:06 +02:00
Sander
5b69c4cf52
chore: bump vite to 4.3.3 ( #22711 )
2023-05-01 15:19:49 -07:00
Yury Semikhatsky
a4e90f20dc
fix(runner): do not hang on worker exit before tests ( #22742 )
2023-05-01 14:54:48 -07:00
Dmitry Gozman
fcd966c4e5
chore: make _setupArtifacts
a worker-scoped fixture ( #22739 )
...
This should unblock having separate test-fixture scopes for hooks and
test.
2023-05-01 13:53:15 -07:00
Yury Semikhatsky
59079d94ca
fix: call onExit when merging reports ( #22718 )
2023-05-01 12:58:40 -07:00
Pavel Feldman
297fea0826
chore: purify the junit reporter ( #22624 )
2023-05-01 09:15:08 -07:00
Alex Neo
26cad0b31f
feat(html): matching labels with dash&spec symbol ( #22709 )
...
Fixes #22700
2023-05-01 09:13:30 -07:00
Playwright Service
1168525c07
feat(chromium-tip-of-tree): roll to r1109 ( #22725 )
...
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-04-30 14:17:30 +02:00
Dmitry Gozman
a1842cc708
chore: extract ArtifactsRecorder from built-in fixtures ( #22717 )
2023-04-29 14:34:45 -07:00
Pavel Feldman
116fb349ce
chore: allow configuring test id attribute for codegen ( #22716 )
...
Fixes: https://github.com/microsoft/playwright/issues/22653
2023-04-29 12:04:33 -07:00
Pavel Feldman
a01df2ff5b
chore: render live trace for the serial mode ( #22715 )
...
Fixes https://github.com/microsoft/playwright/issues/22655
2023-04-28 17:47:57 -07:00
Pavel Feldman
9c29f24c65
chore: poll test result along with the live trace ( #22714 )
...
Fixes: https://github.com/microsoft/playwright/issues/22656
2023-04-28 16:56:28 -07:00
Dmitry Gozman
ffc00566b9
chore: separate options fixture vs artifacts fixture ( #22713 )
...
Later on, artifacts fixture can be made worker-scoped.
2023-04-28 16:54:52 -07:00
Dmitry Gozman
dbb218a9d5
feat: project.teardown
that runs after all dependents have finished ( #22696 )
...
This replicates globalTeardown in the deps world.
Fixes #21914 .
2023-04-28 14:27:08 -07:00
Pavel Feldman
e9373dfb6e
chore: make client-side instrumentation non-nullable ( #22694 )
2023-04-28 08:57:43 -07:00
Sander
66edffff85
chore(ct): optional framework plugin factory ( #22685 )
2023-04-27 20:26:02 -07:00
Alex Neo
7937699b28
fix(html): label not matched if first with describe ( #22680 )
2023-04-27 20:04:54 -07:00
Yury Semikhatsky
16f664e22c
chore: write blob report to the config dir by default ( #22697 )
2023-04-27 17:25:29 -07:00
Yury Semikhatsky
f08caea8f2
chore: split merge and blob reporter ( #22695 )
2023-04-27 16:38:45 -07:00
Yury Semikhatsky
f37f5fc61c
chore: comma separated reporter names, reporter arg from config ( #22693 )
2023-04-27 15:16:18 -07:00
Dmitry Gozman
223baa3393
fix(html): keep tests in the declaration order ( #22690 )
...
Fixes #22143 .
2023-04-27 13:54:15 -07:00
Yury Semikhatsky
82670147b4
chore: support multiple merged reports ( #22672 )
2023-04-27 09:15:24 -07:00
Playwright Service
e50e2e6bc9
feat(webkit): roll to r1840 ( #22686 )
...
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-04-27 17:37:19 +02:00
Playwright Service
5043648762
feat(webkit): roll to r1839 ( #22664 )
...
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-04-27 10:40:09 +02:00
Playwright Service
13061a9bba
feat(ffmpeg): roll to r1009 ( #22670 )
...
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-04-27 10:37:39 +02:00
Yury Semikhatsky
51aca72c35
chore: split InternalReporter and Multiplexer ( #22671 )
...
The multiplexer will be reused in the blob report merger.
2023-04-26 17:55:58 -07:00
Max Schmitt
c5880f9994
chore(chromium): remove --disable-sync CLI switch ( #22667 )
...
Fixes https://github.com/microsoft/playwright/pull/22583
Fixes https://github.com/microsoft/playwright/issues/22560
Not relevant anymore, it only takes effect when profiles is signed in.
See https://bugs.chromium.org/p/chromium/issues/detail?id=1439737 .
2023-04-26 15:34:47 -07:00
Max Schmitt
7b27d70d8a
feat(web-server): add stdout: "pipe"|"ignore" option ( #22564 )
...
Fixes https://github.com/microsoft/playwright/issues/22454
2023-04-26 23:39:42 +02:00
Yury Semikhatsky
9ad9b6b316
chore: reuse createReporters in the merger ( #22636 )
...
#10437
2023-04-26 11:48:19 -07:00
Pavel Feldman
7fdd7a20fb
chore: fix soft after poll ( #22642 )
2023-04-26 08:50:10 -07:00
Sander
44e56d2404
feat(ct): code split for better performance and isolation ( #22494 )
2023-04-25 18:08:34 -07:00