Pavel Feldman
675f0eb4a0
chore: report error location for fatal errors ( #19610 )
2022-12-21 09:36:59 -08:00
Max Schmitt
3555dbd4b4
docs: add 1.29 language port release notes ( #19573 )
...
Signed-off-by: Max Schmitt <max@schmitt.mx>
Co-authored-by: Yury Semikhatsky <yurys@chromium.org>
2022-12-20 20:51:21 +01:00
Max Schmitt
bb2a2c7331
fix: render discouraged / deprecated types ( #19596 )
...
Fixes https://github.com/microsoft/playwright/issues/19591
2022-12-20 16:19:07 +01:00
Jean-François Greffier
6846765a9c
docs: fix docs links ( #19510 )
...
Signed-off-by: Max Schmitt <max@schmitt.mx>
Co-authored-by: Max Schmitt <max@schmitt.mx>
2022-12-20 13:17:52 +01:00
Vladimir Semenov
467d9f37fc
feat(reporter): Add parallelIndex
field to TestResult
( #19570 )
2022-12-19 14:37:04 -08:00
Pavel Feldman
41174e74a7
chore: replace worker index w/ parallel index in the docs ( #19574 )
2022-12-19 13:47:05 -08:00
Chen Chen
53ef0d060c
docs(dotnet): fix the nunit and mstest testing examples in intro ( #19557 )
2022-12-19 16:28:17 +01:00
Yury Semikhatsky
b5f908d31f
docs: remove Serializable from Route.*.postData in java ( #19532 )
...
We only support String and byte[] and throw otherwise, align the types
with it.
2022-12-16 11:14:29 -08:00
Yury Semikhatsky
d01952576d
docs: route.fetch.postData in java ( #19527 )
2022-12-16 10:14:02 -08:00
Andrey Lushnikov
e99323dd90
chore: release notes 1.29 ( #19497 )
...
Signed-off-by: Andrey Lushnikov <aslushnikov@gmail.com>
Co-authored-by: Max Schmitt <max@schmitt.mx>
2022-12-16 09:46:40 -08:00
Max Schmitt
1e31afd9d7
docs: fix locator all since version ( #19509 )
...
Also a CP candidate.
2022-12-16 18:02:26 +01:00
Max Schmitt
ba8a6c4b08
docs: fix HTML snippets ( #19507 )
...
Merging unreviewed to unblock docs build.
Main fix is in line 818, others drive-by.
2022-12-16 12:01:33 +01:00
Andrey Lushnikov
0be1fc8559
chore: cut version 1.29 ( #19489 )
2022-12-15 11:22:35 -08:00
Pavel Feldman
3afd83c8cc
chore: withdraw locator.enumerate ( #19484 )
2022-12-15 10:13:56 -08:00
Max Schmitt
af6e93dfd6
docs(test-cli): document --trace mode ( #19474 )
2022-12-15 17:14:21 +01:00
Debbie O'Brien
38b8140aab
docs: improve examples in assertions ( #19209 )
2022-12-15 10:21:35 +01:00
Debbie O'Brien
c1a1090eb3
docs: improve locators in fixtures ( #19210 )
2022-12-15 10:21:08 +01:00
Pavel Feldman
0e2732decf
feat(api): introduce expect().toPass ( #19463 )
2022-12-14 19:23:13 -08:00
Pavel Feldman
17a0074459
feat(api): introduce Locator.all, enumerate ( #19461 )
2022-12-14 16:42:50 -08:00
Debbie O'Brien
e7b8554342
docs: change listItem to article in locators doc ( #19060 )
2022-12-14 13:42:52 -08:00
Andrey Lushnikov
8167f8bf54
chore: hide "comparator" option from documentation and types ( #19441 )
2022-12-14 09:58:19 -08:00
Yury Semikhatsky
92dd734e04
chore: hide setup, store, TestProject.setupMatch, storageStateName ( #19442 )
2022-12-13 22:48:38 -08:00
Andrey Lushnikov
184ab5b49d
docs: up-to-date linux support ( #19440 )
2022-12-13 16:19:23 -08:00
Pavel Feldman
d1559a0fcc
chore: route.fetch(postData) ( #19436 )
2022-12-13 14:01:39 -08:00
Dmitry Gozman
d02ac9f8db
fix(docs): TestOptions.screenshot typo ( #19433 )
2022-12-13 12:31:52 -08:00
Pavel Feldman
6cadc56ea3
feat(api): allow getByTestId(regex) ( #19419 )
2022-12-13 08:43:13 -08:00
Yury Semikhatsky
0cb1e97528
docs: strictSelectors does not affect Locators ( #19414 )
...
Fixes https://github.com/microsoft/playwright/issues/19398
2022-12-12 15:09:44 -08:00
Pranav Jain
59118b83f9
feat(android): add support for passing CR args & proxy when launching browser ( #19212 )
...
Fixes https://github.com/microsoft/playwright/issues/19211
2022-12-12 16:15:19 +01:00
Patrick Kerschbaum
a2172e1799
docs: fix broken link ( #19394 )
2022-12-12 14:48:44 +01:00
Pavel Feldman
7aa3935dcc
chore: match selected options by both value and label ( #19316 )
2022-12-07 09:04:32 -08:00
Fernando Garcia Llorente
cd4ccdfa29
feat: allow options in automatic screenshots ( #19143 )
...
Closes #9983
Allowing Automatic Screenshots in `PlaywrightTestConfig` to have
`fullPage` & `omitBackground` as optional parameters.
2022-12-07 08:45:33 -08:00
Andrey Lushnikov
cac67fb94f
chore: do not use "threshold" option for the ssim-cie94
comparator ( #19314 )
2022-12-06 17:03:13 -08:00
Yury Semikhatsky
beb15bb504
chore: rename setup => setupMatch ( #19309 )
2022-12-06 14:55:22 -08:00
Yury Semikhatsky
1b3e53697b
chore: TestStorage => TestStore ( #19308 )
2022-12-06 13:33:43 -08:00
Yury Semikhatsky
405d6267dc
docs: per worker login with auto fixture ( #19307 )
2022-12-06 13:06:47 -08:00
Yury Semikhatsky
3c1b26b9f1
feat: make storage a global variable ( #19283 )
2022-12-05 21:37:37 -08:00
Dmitry Gozman
e55a2bdf16
docs: rework Selectors to Other Locators ( #19244 )
...
- Replace links to `selectors.md` with `locators.md`.
- Remove sections that are covered by Locators docs.
- Restructure the rest of selectors doc, update them in terms of
locators.
Fixes #18992 .
2022-12-02 21:48:37 -08:00
Pavel Feldman
9b35ef3b8d
docs: introduce the concept of details ( #19242 )
2022-12-02 17:35:21 -08:00
Andrey Lushnikov
6d82460a02
feat: implement a new image comparison function ( #19166 )
...
This patch implements a new image comparison function, codenamed
"ssim-cie94". The goal of the new comparison function is to cancel out
browser non-determenistic rendering.
To use the new comparison function:
```ts
await expect(page).toHaveScreenshot({
comparator: 'ssim-cie94',
});
```
As of Nov 30, 2022, we identified the following sources of
non-determenistic rendering for Chromium:
- Anti-aliasing for certain shapes might be different due to the
way skia rasterizes certain shapes.
- Color blending might be different on `x86` and `aarch64`
architectures.
The new function employs a few heuristics to fight these
differences.
Consider two non-equal image pixels `(r1, g1, b1)` and `(r2, g2, b2)`:
1. If the [CIE94] metric is less then 1.0, then we consider these pixels
**EQUAL**. (The value `1.0` is the [just-noticeable difference] for
[CIE94].). Otherwise, proceed to next step.
1. If all the 8 neighbors of the first pixel match its color, or
if the 8 neighbors of the second pixel match its color, then these
pixels are **DIFFERENT**. (In case of anti-aliasing, some of the
direct neighbors have to be blended up or down.) Otherwise, proceed
to next step.
1. If SSIM in some locality around the different pixels is more than
0.99, then consider this pixels to be **EQUAL**. Otherwise, mark them
as **DIFFERENT**. (Local SSIM for anti-aliased pixels turns out to be
very close to 1.0).
[CIE94]: https://en.wikipedia.org/wiki/Color_difference#CIE94
[just-noticeable difference]:
https://en.wikipedia.org/wiki/Just-noticeable_difference
2022-12-02 15:22:05 -08:00
Yury Semikhatsky
e998b6cab9
docs: auth in project setup ( #19220 )
2022-12-01 16:53:54 -08:00
Max Schmitt
62b28c89b4
docs(assertions): fix wrong toHaveText param description ( #19213 )
...
Fixes https://github.com/microsoft/playwright/issues/19202
2022-12-01 09:14:06 -08:00
Pavel
d63f2542a2
chore: follow up to mock api doc change
2022-11-30 19:31:30 -08:00
Pavel Feldman
2fd0982372
docs: improve API mocking docs ( #19189 )
2022-11-30 19:29:14 -08:00
Pavel Feldman
f0e8d8f074
feat(api): introduce route.fetch and route.fulfill(json) ( #19184 )
2022-11-30 17:26:19 -08:00
Max Schmitt
878401ff2b
docs(test-reporters): fix code snippet typos
...
Fixes #19159
2022-11-30 15:37:31 -08:00
Dmitry Gozman
6721ea4d3a
docs: fix string AriaRole in java/csharp ( #19183 )
2022-11-30 13:46:33 -08:00
Dmitry Gozman
499324961a
docs: remove Promise.all from examples ( #19154 )
...
Replaced with explicit `popupPromise` variable.
2022-11-30 12:36:35 -08:00
Yury Semikhatsky
de1fc170b2
docs: TestProject.setup ( #19152 )
2022-11-30 09:18:47 -08:00
Dmitry Gozman
307a0b6ea7
fix(dotnet): codegen/docs use Name instead of NameString ( #19156 )
2022-11-29 20:56:18 -08:00
Pavel Feldman
89bdaf2441
chore: rename ScreenshotAssertions to SnapshotAssertions ( #19150 )
2022-11-29 16:57:03 -08:00