Dmitry Gozman
9cd704220c
reland(test runner): run hooks/modifiers as a part of the test ( #12518 )
...
Reland: worker.stop() before worker.run() was hanging because
`_runFinished` promise was not initially resolved.
---
This moves `beforeAll`, `afterAll` and some modifiers from running
as a separate entity into running inside a test.
Pros:
- All errors are reported as test errors.
- All artifacts are collected as test artifacts.
- Reporters support this out of the box.
Details:
- Each test computes the necessary hooks to run and runs them.
- Teardown is usually performed during the test (on test failure or worker stop).
- `skipRemaining` is added to `DonePayload` to preserve the behavior
where `beforeAll` hook failure skips subsequent tests.
This behavior can now be improved to only target tests affected by this hook.
2022-03-08 16:35:14 -08:00
Yury Semikhatsky
79c8746fd2
docs: add name for screenshot animations option ( #12601 )
2022-03-08 16:02:31 -08:00
Yury Semikhatsky
03150265db
docs: update POM guide ( #12598 )
2022-03-08 14:01:50 -08:00
Andrey Lushnikov
4bccf2f6aa
chore: cut v1.20 branch ( #12593 )
2022-03-08 14:01:20 -08:00
Meir Blachman
7e53facf1e
docs: Update pom.md to use locators ( #12592 )
2022-03-08 21:39:40 +01:00
Max Schmitt
30c954a3ba
docs: add Docker image for Python ( #12595 )
2022-03-08 21:21:46 +01:00
Andrey Lushnikov
422df4cbbe
docs: add js release notes for 1.20 ( #12575 )
2022-03-08 12:15:55 -08:00
github-actions[bot]
04e03728b8
feat(chromium): roll to r978106 ( #12585 )
...
Co-authored-by: Max Schmitt <max@schmitt.mx>
2022-03-08 21:05:56 +01:00
Andrey Lushnikov
497b51ad8c
fix(toHaveScreenshot): fix initial screenshot time ( #12576 )
...
Instead of being taken immediately, first screenshot was actually
taken after 1 second.
2022-03-08 09:30:14 -08:00
github-actions[bot]
18e6aa3f15
feat(firefox): roll to r1319 ( #12587 )
...
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2022-03-08 09:19:00 -08:00
Andrey Lushnikov
b8af8458d6
fix: explicitly ignore maxDiffPixels in toMatchSnapshot ( #12570 )
...
Fixes #12564
2022-03-07 16:55:35 -08:00
Andrey Lushnikov
e8ad7eb3f2
browser(firefox): roll Firefox to M97 ( #12574 )
...
Firefox 98 doesn't work on Ubuntu aarch64 yet.
https://github.com/microsoft/playwright/issues/12557
2022-03-07 16:16:42 -08:00
Andrey Lushnikov
b0a1b412c9
devops: use xcode 13.2 when building WebKit @ MacOS 11 ( #12573 )
2022-03-07 15:45:35 -08:00
Yury Semikhatsky
e3e29e25be
docs: update links to assertions class ( #12562 )
2022-03-07 10:37:36 -08:00
Dmitry Gozman
d836ed41d3
feat(remote): send 'x-playwright-browser' header ( #12556 )
2022-03-07 10:30:53 -08:00
Max Schmitt
5ca7858ace
docs: use npm init @latest ( #12561 )
2022-03-07 19:30:03 +01:00
Siddharth Singha Roy
a2b3d4f570
feat(cli) : allow passing PlaywrightServer.startDefault parameters via cli ( #12530 )
2022-03-07 09:15:46 -08:00
github-actions[bot]
d81330f28f
browser(chromium): roll to r978106 ( #12550 )
...
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2022-03-07 11:42:14 +01:00
Diego Pino
cd0074fa41
browser(webkit): rebase to 03/04/22 (r290853) ( #12551 )
2022-03-07 11:39:09 +01:00
github-actions[bot]
702536d962
feat(webkit): roll to r1616 ( #12541 )
...
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Yury Semikhatsky <yurys@chromium.org>
2022-03-06 12:22:47 +01:00
Andrey Lushnikov
d7648d390c
fix(toHaveScreenshot): round ratio up ( #12540 )
...
This way the ratio value could be used right away in configuation.
2022-03-04 18:55:48 -08:00
Andrey Lushnikov
a3dff45974
chore: remove maxDiffPixels
from toMatchSnapshot ( #12539 )
...
References #12441
2022-03-04 18:27:04 -08:00
Andrey Lushnikov
6dac01aec7
fix: implement log scale back-off for screenshots ( #12504 )
...
References https://github.com/microsoft/playwright/issues/12441
2022-03-04 18:17:57 -08:00
Andrey Lushnikov
4953fc4845
chore: introduce toHaveScreenshot configuration options ( #12507 )
...
References https://github.com/microsoft/playwright/issues/12441
2022-03-04 17:30:43 -08:00
github-actions[bot]
adb2847d84
feat(firefox): roll to r1318 ( #12537 )
...
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2022-03-04 17:29:35 -08:00
Ross Wollman
281945c8b6
test: typo fix ( #12531 )
2022-03-04 17:09:18 -08:00
Max Schmitt
5fd43edcbb
chore: fix android tests after #12220 ( #12535 )
2022-03-05 00:18:03 +01:00
Yury Semikhatsky
6c4c62b674
browser(webkit): fix geolocation overrides ( #12534 )
2022-03-04 15:01:31 -08:00
Andrey Lushnikov
d61862094e
devops: do not compile NaCL for chromium ( #12508 )
2022-03-04 14:38:02 -08:00
Andrey Lushnikov
e10b39673c
devops: fix firefox build on Win10 ( #12533 )
2022-03-04 14:34:22 -08:00
Karan Shah
fd1a1a2b1c
feat(android): Adding custom port parameter to connect to different adb server port ( #12220 )
2022-03-04 20:27:25 +01:00
Yury Semikhatsky
50cc1641d1
fix(webkit): add libopengl0 to the native deps ( #12526 )
2022-03-04 11:13:34 -08:00
Matt Butler
4d34815c36
docs(test-auth-js.md): remove unnecessary export ( #12520 )
2022-03-04 11:09:41 -08:00
Andrey Lushnikov
b45c788a33
fix(disable-animations): rename boolean to enum ( #12503 )
...
Enums are more flexible in the long run since they let us easily
extend API.
References #12441
2022-03-04 11:02:59 -08:00
Andrey Lushnikov
1f5cfcaeec
fix(to-have-screenshot): show number of bad pixels in mismatched error ( #12502 )
...
Drive-by: do not show empty call log.
References #12441
2022-03-04 11:01:05 -08:00
Yury Semikhatsky
f96a1a3ccd
fix(devops): list dependencies error ( #12521 )
2022-03-04 09:23:05 -08:00
github-actions[bot]
ab40d934ad
feat(chromium): roll to r976882 ( #12516 )
...
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2022-03-04 14:48:25 +01:00
Andrey Lushnikov
df51849316
browser(firefox): roll Firefox to M98 ( #12509 )
...
The release is scheduled for Mar 8, 2022.
2022-03-04 02:22:28 -08:00
Basarat Ali Syed
dd83ece3cb
chore(test-runner): correct warning instruction for port reuse ( #12479 )
2022-03-04 10:14:49 +01:00
Andrey Lushnikov
279e579097
chore: address pixelCount
and pixelRatio
review comments ( #12501 )
...
- documentation fixes
- rename pixelCount to maxDiffPixels
- rename pixelRatio to maxDiffPixelRatio
2022-03-03 23:17:31 -08:00
Max Schmitt
fc32ec9944
docs: fix wrong nesting level in test-parameterize.md ( #12499 )
2022-03-04 00:07:59 +01:00
Max Schmitt
42b9fc1cd9
docs(dotnet): move Expect to method on harness ( #12498 )
2022-03-03 23:05:13 +01:00
Max Schmitt
96a6cbbe58
docs: update verification.md web-first-assertions redirect warning ( #12495 )
...
Co-authored-by: Pavel Feldman <pavel.feldman@gmail.com>
2022-03-03 22:39:30 +01:00
Yury Semikhatsky
b96bbc6ad7
docs: simplify test-assertions.md, avoid duplication ( #12475 )
2022-03-03 10:06:14 -08:00
Max Schmitt
c2b6614e41
docs: add CSV guide for the test-runner ( #12488 )
2022-03-03 18:36:12 +01:00
github-actions[bot]
0332e0099f
browser(chromium): roll to r976882 ( #12490 )
...
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2022-03-03 08:42:17 -08:00
github-actions[bot]
856ff5c685
feat(firefox-beta): roll to r1318 ( #12478 )
...
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2022-03-03 08:41:23 -08:00
Max Schmitt
3db4b48bd3
fix(cli): fix wrong property for passing browser name ( #12489 )
2022-03-03 17:17:23 +01:00
Andrey Lushnikov
71a4f69acf
devops: fix firefox-beta build on Windows 10 ( #12477 )
...
Instead of using 64-bit version of MINGW that comes with Git Bash,
we now switch to the one provided by the mozilla-build on windows,
which is 32-bit.
This patch also reverts the previous attempt that was defining the library names
for redistribution. It should work without them as well.
References #12225
2022-03-02 19:30:29 -08:00
Yury Semikhatsky
5db93e6ddf
docs: asertions.not is a property ( #12474 )
2022-03-02 15:03:33 -08:00