2689 Commits

Author SHA1 Message Date
Max Schmitt
30557ed28c
fix(electron): stalling on delayed process close (#29431) 2024-02-13 10:25:46 +01:00
Yury Semikhatsky
7834beb932
chore: extract --project-grep option for matching with regex (#29445)
Reference https://github.com/microsoft/playwright/issues/15128
2024-02-10 11:19:00 -08:00
Dmitry Gozman
f0244b8a76
chore: rename handleLocator to addLocatorHandler (#29443) 2024-02-09 15:18:50 -08:00
Max Schmitt
abd8502490
devops: do not publish sha-X Docker images (#29433) 2024-02-09 09:07:10 -08:00
Dmitry Gozman
61955e55b1
fix(handleLocator): address API review feedback (#29412)
- docs improvements;
- `force: true` ignores `handleLocator`;
- wrapping an internal call;
- more test cases;
- `pw:api` log entries for this API.
2024-02-08 07:39:05 -08:00
Dmitry Gozman
3331a40647
feat(test runner): tags/annotations (#29248)
API changes:
- `test(title, details, body)` where details contain `tag` and
`annotation`.
- similar `details` property added to `test.skip`, `test.fail`,
`test.fixme`, `test.only`, `test.describe` and other `test.describe.*`
variations.
- `TestProject.tagFilter`/`TestConfig.tagFilter` that supports logical
tag expressions with `(`, `)`, `and`, `or` and `not`.
- `--tag` CLI option to filter by tags.
- New annotations are available in `TestInfo.annotations` and
`TestCase.annotations`.
- New tags are available in `TestCase.tags`.
    
Reporter changes:
- `json` reporter includes new tags in addition to old `@smoke`-style
tags. **Breaking**: tags are now listed with the leading `@` symbol.
- `html` reporter filters by old and new tags with the same `@smoke`
token.

Fixes #29229, fixes #23180.
2024-02-07 16:31:25 -08:00
Colin Harris
bb380691f0
docs: reference GitHub actions/checkout@v4 and actions/setup-node@v4 (#29392) 2024-02-07 09:50:09 +01:00
Dmitry Gozman
9e285ce919
docs: do not call custom expect message an "error message" (#29390)
Fixes #29378.
2024-02-06 12:12:45 -08:00
Dmitry Gozman
fb29d90052
docs: remove overloads from test.* APIs (#29376) 2024-02-05 19:03:04 -08:00
Max Schmitt
47f8ba2a04
feat(electron): expose ElectronApplication console events (#29322)
Fixes https://github.com/microsoft/playwright/issues/5905
2024-02-05 21:30:54 +01:00
Christopher Dunderdale
36eed69fe2
docs(emulation): fix incorrect code snippet for using JavaScriptEnabled (#29333) 2024-02-04 10:31:28 +01:00
Max Schmitt
a6e0af6767
feat: parse projects option as RegExp (#29327)
Fixes https://github.com/microsoft/playwright/issues/15128
Relates https://github.com/microsoft/playwright/pull/17244

---------

Signed-off-by: Max Schmitt <max@schmitt.mx>
Co-authored-by: Yury Semikhatsky <yurys@chromium.org>
2024-02-02 23:05:20 +01:00
Max Schmitt
0f8d619012
docs(dotnet): add docs for SetDefaultExpectTimeout (#29259) 2024-01-31 17:49:01 +01:00
Daniel Han
be6ab76c04
docs: add CLI documentation for --no-deps (#29235) 2024-01-30 11:44:33 -08:00
iridescentGray
289127d523
docs: fix python mock docs (#29230) 2024-01-30 09:04:28 +01:00
iridescentGray
14f94fcff5
fix: python mock doc Missing (#29187) 2024-01-29 15:02:19 -08:00
John Hill
82f40d0802
docs: Add Warning about Github Annotations (#29202) 2024-01-29 14:59:28 -08:00
Bruno Mańczak
3e2d5b2800
docs: add an example of how to use "+" key as part of a shortcut (#29221) 2024-01-29 14:57:10 -08:00
Max Schmitt
1db4e2effb
devops: bump GitHub Actions workflow actions (#29219)
Fixes:

<img width="2186" alt="image"
src="https://github.com/microsoft/playwright/assets/17984549/e75b4319-a8d9-4784-8357-83611f2671ae">
2024-01-29 19:22:44 +01:00
Gabriel Feo
12a9a308f8
chore: replace "node.js" mention in shared docs (#29119)
Remove "Node.js" mention from the shared part of docs, which are shown
in docs for Python and other platforms.
2024-01-25 16:53:25 -08:00
Yury Semikhatsky
f49426b006
docs: update browsers when updating playwright (#29128) 2024-01-24 21:54:03 -08:00
Yury Semikhatsky
0752f0202f
docs: teardown examples (#29134)
Fixes https://github.com/microsoft/playwright/issues/29068
2024-01-23 16:35:30 -08:00
Yury Semikhatsky
ea855e232e
docs: update note on filtering dependent projects (#29135)
Fixes https://github.com/microsoft/playwright/issues/29102
2024-01-23 16:10:43 -08:00
Yury Semikhatsky
9cd2916623
docs: add a new fruit when mocking response (#29137)
Strawberry is already in the original list.

Fixes https://github.com/microsoft/playwright/issues/29114
2024-01-23 16:10:33 -08:00
Max Schmitt
d89ed88679
docs: do not recommend PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD anymore (#29121) 2024-01-23 09:12:47 -08:00
Yury Semikhatsky
fbf87ef904
fix: test.fail wrapper method (#29112)
Fixes https://github.com/microsoft/playwright/issues/29104
2024-01-22 19:47:27 -08:00
Max Schmitt
db00aa7305
fix: remove unused TestInfo.stdout/stderr (#29076)
https://github.com/microsoft/playwright/issues/29062
2024-01-22 19:22:31 +01:00
Dmitry Gozman
f3fac6f4e9
feat: page.handleLocator that closes any interstitial pages/dialogs (#29029) 2024-01-19 12:35:00 -08:00
Max Schmitt
6a15d43539
docs: rename example env var (#29061) 2024-01-19 17:43:37 +01:00
romanimm
a217d6a08d
docs: fix typo for stylePath (#29034) 2024-01-18 09:59:31 +01:00
inottn
0fa85143a0
docs: add missing imports (#29014) 2024-01-17 08:11:55 +01:00
Max Schmitt
7e6072583b
docs(docker): various enhancements (#28994)
Fixes https://github.com/microsoft/playwright-python/issues/2241
2024-01-16 19:27:17 +01:00
jonghoonpark
4c0a972b69
feat(expect): Make toPass's option configurable by TestConfig (#28231)
Co-authored-by: jonghoon.park <jonghoon.park@lucentblock.com>
Co-authored-by: Max Schmitt <max@schmitt.mx>
2024-01-16 12:28:38 +01:00
Max Schmitt
01af7e5d8e
docs(release-notes): add v1.41 release notes (#28697)
Signed-off-by: Max Schmitt <max@schmitt.mx>
Co-authored-by: Dmitry Gozman <dgozman@gmail.com>
2024-01-13 00:11:42 +01:00
Yury Semikhatsky
d4329bb6f2
docs: add example of data isolation between parallel tests (#28958) 2024-01-12 12:47:40 -08:00
Dmitry Gozman
37634df0c4
docs: note that opacity:0 still counts as visible element (#28965)
Closes #28954.
2024-01-12 09:38:23 -08:00
Dmitry Gozman
90665ef056
docs: update auto-waiting doc (#28960)
- Replace action names with links to `Locator.click`.
- Remove "Attached" check in favor of "locator resolves to a single
element".
- Replace getter methods in assertion section with auto-retriying
assertions.
- Add missing actions.

---

<img width="837" alt="Screenshot 2024-01-11 at 1 02 34 PM"
src="https://github.com/microsoft/playwright/assets/9881434/1946678d-6a7e-45cf-a299-2f18cb3fb5a5">
2024-01-12 09:33:42 -08:00
Yury Semikhatsky
b392c2d392
docs: add proxy example to the API testing guide (#28959)
Fixes https://github.com/microsoft/playwright/issues/28940
2024-01-11 13:39:35 -08:00
Max Schmitt
c5097a500d
docs: add java/csharp code snippets for FormData (#28951)
Fixes https://github.com/microsoft/playwright/issues/28811

---------

Signed-off-by: Max Schmitt <max@schmitt.mx>
Co-authored-by: Dmitry Gozman <dgozman@gmail.com>
2024-01-11 18:36:05 +01:00
Viicos
88d7ff97a1
docs(python): fix example in mock docs (#28894) 2024-01-08 15:14:56 +01:00
geke-scottlogic
6bd61cd8c6
docs: Improve clarity on toHaveText and toContainText assertions (#28623)
This closes https://github.com/microsoft/playwright/issues/28058.
2024-01-05 09:20:50 -08:00
Yury Semikhatsky
fad703d4ee
docs: update merge example to upload-artifact@v4 (#28849)
Artifacts in upload-artifact@v4 are
[immutable](https://github.com/actions/upload-artifact/tree/main?tab=readme-ov-file#breaking-changes),
so we cannot simply copy reports into single artifact.

Fixes https://github.com/microsoft/playwright/issues/28800
2024-01-04 16:03:22 -08:00
Max Schmitt
32f595d1c9
docs(browsers): fix comment about stable Firefox (#28862) 2024-01-04 09:30:42 -08:00
Xuan
d8733d9229
docs: remove the create method from extensibility (#28823)
I saw the `create` method in the
[Extensibility](https://playwright.dev/docs/extensibility) section of
the document but didn't quite understand its actual purpose. Therefore,
I attempted to add this method in the test examples, but it seems that
regardless of what this method returns or if it throws an error, it has
no effect. Upon further examination of the
[selectors.ts](https://github.com/microsoft/playwright/blob/main/packages/playwright-core/src/client/selectors.ts)
and
[types.ts](https://github.com/microsoft/playwright/blob/main/packages/playwright-core/src/client/types.ts#L129)
files, I noticed that this method is not defined. Consequently, I opened
this pull request to remove the description of this method to prevent
any potential misunderstandings by others.

If there are any misunderstandings, feel free to close this pull
request. Thank you.
2024-01-03 09:39:57 -08:00
Nick Wittland
7bffff5790
docs: configuration of junit reporter in ci.md (#28817) 2023-12-31 13:43:10 -08:00
Yury Semikhatsky
207585ef63
docs: clarify tracing name parameter semantics (#28759)
Fixes https://github.com/microsoft/playwright/issues/28751
2023-12-21 15:24:54 -08:00
Yury Semikhatsky
db703a98ea
docs: no floating promises in route handlers (#28745)
Fixes https://github.com/microsoft/playwright/issues/28737
2023-12-21 09:57:35 -08:00
Yury Semikhatsky
f7e298fec3
docs: clarify toPass timeout behavior (#28747)
Fixes https://github.com/microsoft/playwright/issues/28744
2023-12-20 15:39:53 -08:00
Yury Semikhatsky
87ca45366b
docs: quote to avoid variable expansion in powershell (#28728)
Fixes https://github.com/microsoft/playwright/issues/28724
2023-12-20 09:56:37 -08:00
Max Schmitt
e2c335a40c
docs(intro): update requirements to new macOS version (#28683) 2023-12-18 18:38:51 +01:00