Commit graph

2108 commits

Author SHA1 Message Date
Dmitry Gozman dd8a1193fc cherry-pick(#29909): docs: mark addLocatorHandler as experimental 2024-03-12 12:03:02 -07:00
Yury Semikhatsky 87a6f9cb77
cherry-pick(#29885): docs: junit integration release notes (#29886) 2024-03-11 16:41:25 -07:00
Playwright Service e164ac7697
cherry-pick(#29406): docs(java): update JUnit examples with new fixtures (#29881)
This PR cherry-picks the following commits:

- 8f4c2f714d
2024-03-11 11:29:49 -07:00
Playwright Service 1a80286a4d
cherry-pick(#29825): docs: add release-notes for language bindings (#29830)
This PR cherry-picks the following commits:

- 502d21e96a
- b3edb2a130

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-03-06 10:51:20 +01:00
Dmitry Gozman d4ac444f7d cherry-pick(#29770): docs: improve addLocatorHandler docs 2024-03-01 11:20:22 -08:00
Playwright Service e7f0635c17
cherry-pick(#29692): docs: better addLocatorHandler example in release notes (#29697)
This PR cherry-picks the following commits:

- 321e9d72c3
2024-02-27 11:05:24 -08:00
Yury Semikhatsky aa9f6fb718
cherry-pick(#29669): chore: strengthen linting (#29674) 2024-02-26 17:43:55 -08:00
Yury Semikhatsky 77e1b02552
docs: 1.42 release notes (#29666) 2024-02-26 16:34:19 -08:00
Yury Semikhatsky c1421bc9f2
docs: typescript compiler invocation before tests (#29667)
Fixes https://github.com/microsoft/playwright/issues/29618
2024-02-26 15:26:05 -08:00
Simon Knott c5af51c59d
docs(intro): fix grammar mistake in docs (#29659)
Signed-off-by: Simon Knott <info@simonknott.de>
2024-02-26 15:19:27 +01:00
Max Schmitt adccd39b01
docs(dotnet): type specific addLocatorHandler handler (#29586) 2024-02-22 23:53:09 +01:00
Simon Willison e846afeb98
docs(python): Clarify Pytest v.s. Library on Python intro page (#29590) 2024-02-22 09:27:41 +01:00
Yury Semikhatsky 9a1e0a8ff7
docs: custom reporter path in --reporter option (#29585)
Fixes https://github.com/microsoft/playwright/issues/29525
2024-02-20 13:32:53 -08:00
Jan Lelis 3f46ba0680
docs(auth): Fix double use of JSON.stringify in Session storage example (#29554) 2024-02-20 19:57:44 +01:00
Yury Semikhatsky f3fde992eb
chore: remove --project-grep, add wildcard support (#29537)
Reference #15128
2024-02-16 19:18:00 -08:00
Dmitry Gozman bd5403dcad
chore: remove --tag and tagFilter (#29468)
This makes new tags filtered by the `grep`. New `TestCase.tags` API now
includes both old and new tags.
2024-02-15 11:37:16 -08:00
Sylvain Finot b11b118e02
feat(chromium): expose parameters to generate outline / tagged PDF (#29494)
Signed-off-by: Max Schmitt <max@schmitt.mx>
Co-authored-by: Max Schmitt <max@schmitt.mx>
2024-02-15 17:28:04 +01:00
Yury Semikhatsky edc1c13f31
docs: locator handler type should be Runnable in java (#29503) 2024-02-14 19:21:28 -08:00
Max Schmitt 93a2c00a1d
docs(webServer): add missing options (#29490) 2024-02-14 17:57:40 +01:00
Max Schmitt ce5d970929
docs: make sure to await route.* methods (#29489)
Fixes https://github.com/microsoft/playwright/issues/29471
Follow-up on https://github.com/microsoft/playwright/pull/28745.
2024-02-14 17:57:12 +01:00
Max Schmitt 918c26fa02
docs(other-locators): hide css:light selector engine (#29491)
https://github.com/microsoft/playwright/issues/29479
2024-02-14 08:49:42 -08:00
Brian Scramlin 2550ba3396
Update test-fixtures-js.md (#29283) 2024-02-13 11:28:34 -08:00
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