Commit graph

2054 commits

Author SHA1 Message Date
Playwright Service 4d9f923dfe
cherry-pick(#29034): docs: fix typo for stylePath (#29035)
This PR cherry-picks the following commits:

- a217d6a08d

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-01-18 10:06:32 +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
Yury Semikhatsky 86ef7393ba
docs: remove unrouteAll.behavior option from java (#28675)
This option does not make sense in the synchronous API where all active
routes would be on the same call stack any way.

Reference https://github.com/microsoft/playwright/issues/23781
2023-12-15 12:09:26 -08:00
Max Schmitt 665bce64ae
docs(dotnet): add a note on how to install a custom .NET version in Docker (#28672)
Fixes https://github.com/microsoft/playwright-dotnet/issues/2698
Relates https://github.com/microsoft/playwright/issues/28667
2023-12-15 10:40:50 -08:00
Max Schmitt dfd8f25e6c
docs(csharp): refer to net8.0 (new LTS) (#28664) 2023-12-15 10:32:51 -08:00
Yury Semikhatsky 9c845365f7
chore: revert TestProject.botName for this release (#28670)
This is essentially a revert of f88288d71d

Reference https://github.com/microsoft/playwright/issues/27284
2023-12-15 09:48:34 -08:00
Yury Semikhatsky d89837c58e
chore: revert noWaitForFinish option, page.close does not wait for ro… (#28658)
…ute handlers

Reference https://github.com/microsoft/playwright/issues/23781
2023-12-15 09:00:12 -08:00
Max Schmitt 256b287649
docs: note that custom args are on your own risk (#28656)
https://github.com/microsoft/playwright/issues/28537
2023-12-14 14:37:31 -08:00
Yury Semikhatsky f28ceffa37
feat: page.unrouteAll and context.unrouteAll (#28635)
Reference https://github.com/microsoft/playwright/issues/23781
2023-12-14 13:48:17 -08:00
Pavel Feldman d242ff67ef
chore: follow up to the stylePath review (#28636) 2023-12-14 08:19:24 -08:00
Max Schmitt ff3b70b625
docs(docs): add docs about integrating Trace into NUnit/MSTest (#28639) 2023-12-13 21:03:29 -08:00
Max Schmitt e8c8852c00
chore: discourage methods on ElementHandle (#28637)
Mirrors the deprecations from page.* over to ElementHandle.
2023-12-13 20:06:01 -08:00
Dmitry Gozman ac3600ec96
feat: explain that argument is a regex (#28590)
- in docs;
- in the error message.

Terminal output:

```
$ npx playwright test foobar
Error: No tests found.
Make sure that arguments are regular expressions matching test files.
You may need to escape symbols like "$" or "*" and quote the arguments.
```

References #28551.
2023-12-11 17:35:39 -08:00
Dmitry Gozman ee9a7dad12
docs: emphasize that has is a relative locator (#28588)
References #28556.
2023-12-11 17:35:29 -08:00
Yury Semikhatsky 411abdb752
feat: add fileName option to blob reporter (#28525)
Reference https://github.com/microsoft/playwright/issues/27284
2023-12-06 20:44:06 -08:00
Yury Semikhatsky f88288d71d
feat: config.botName for describing environment in the reports (#28507)
Reference https://github.com/microsoft/playwright/issues/27284
2023-12-06 13:34:16 -08:00
jaktestowac.pl 297f2af16b
docs: add info about merging fixtures to fixtures page (#28468) 2023-12-05 17:02:55 -08:00
Christopher Dunderdale c8bc79655f
docs: fix various syntax errors in .NET documentation (#28472) 2023-12-05 09:19:12 -08:00
Yury Semikhatsky 74e51d334e
feat: wait for active route handlers on page/context close (#28414)
Reference https://github.com/microsoft/playwright/issues/23781
2023-12-04 16:19:05 -08:00
Dmitry Gozman b4de3133cc
docs: add exposeNetwork option documentation to connectOptions fixture (#28483) 2023-12-04 09:38:17 -08:00
Laurent Thiebault ac846c1632
docs: fix some typo (#28450) 2023-12-02 15:35:51 -08:00
Pavel Feldman 0a7a10d0f6
feat(vrt): allow providing screenshot style (#28229) 2023-11-30 17:42:45 -08:00
Max Schmitt da6a36062e
docs(docker): add note on how to create your own (#28434)
https://github.com/microsoft/playwright/issues/28383

---------

Signed-off-by: Max Schmitt <max@schmitt.mx>
Co-authored-by: Dmitry Gozman <dgozman@gmail.com>
2023-11-30 14:04:42 -08:00
Dmitry Gozman 35c2633013
docs: state that grid support is experimental (#28406) 2023-11-29 12:16:10 -08:00
Yury Semikhatsky cea28b2df9
docs: clarify beforeAll execution on exception (#28361)
Reference https://github.com/microsoft/playwright/issues/28285
2023-11-27 16:37:30 -08:00
Yury Semikhatsky 854ae4eede
docs: remove duplicate entry for --config (#28357) 2023-11-27 11:38:52 -08:00
Yair Cohen 54c9c7ff9c
docs(test-sharding) fix typo (#28215) 2023-11-23 18:00:02 +01:00
Debbie O'Brien ff2f93e36d
docs: Add video for Playwright 1.40 (#28309) 2023-11-23 14:01:05 +01:00
Debbie O'Brien 3d54d377ba
docs: Update codegen documentation and screenshots (#28302) 2023-11-23 13:05:03 +01:00
Aislinn Hayes 1f953c2148
docs: add a link to screenshots api in the docs (#28288) 2023-11-23 11:06:06 +01:00
Yury Semikhatsky 2b4d51b1e8
docs: grep for project dependencies (#28299)
Fixes https://github.com/microsoft/playwright/issues/28296
2023-11-22 12:31:54 -08:00
Max Schmitt e405c1deea
docs(trace-viewer): fix <details><summary> syntax (#28276) 2023-11-22 19:40:23 +01:00
Max Schmitt d7d1c80cf7
docs(python): add ignoreCase to NotToHaveAttribute (#28267)
https://github.com/microsoft/playwright-python/issues/2078
2023-11-21 08:54:23 -08:00
Max Schmitt 8c880cad76
docs(release-notes): 1.40 nits (#28271) 2023-11-21 08:54:01 -08:00