17 Commits

Author SHA1 Message Date
Jean-François Greffier
508021362d
fix minor typos in "Getting Started" (#33613) 2024-11-15 14:45:54 -08:00
Ana Margarida Silva
b23edf5137
fix(docs): remove todo in ci intro docs (#32643) 2024-09-17 10:36:43 +02:00
Simon Knott
244761a3a2
chore(docs): Rework CI docs (#31988)
This PR moves around some of our CI docs. It moves the GitHub actions
docs from `ci-intro.md` to `ci.md`, reduces `ci-intro.md` to be an
introduction, adds a mention of Sharding to the best practices, and adds
a section on `--only-changed` called "Fail-Fast". Each of those changes
is a separate commit, to make this a little easier to review. If we find
any of those to commits to be contentious, i'll pull them out into
individual PRs.

While rolling this to playwright.dev, we'll also make the following
changes to its sidebar:
- move the `ci.md` document from the "Integrations" section to the
"Playwright Test" section
- make "Best Practices" the last item of the "Getting Started" section

---------

Signed-off-by: Simon Knott <info@simonknott.de>
Co-authored-by: Yury Semikhatsky <yurys@chromium.org>
2024-08-20 09:03:02 +02:00
Max Schmitt
b214941a01
chore: make it more clear that --only-changed is per file (#31874) 2024-07-26 12:41:33 +02:00
Simon Knott
f23d02a211
feat(test runner): --only-changed option (#31727)
Introduces an `--only-changed [base ref]` option.

`playwright test --only-changed` filters the test run to only run test
suites that have uncommitted changes.
`playwright test --only-changed=foo` runs only tests that were changed
since commit `foo`.

In pull request CI, this can be used to run changed tests first and fail
fast: `--only-changed=$GITHUB_BASE_REF`.
During local development, it can be used to quickly filter down to the
touched set of tests suites.
In some rare usecases, this can also help to cut down on CI usage for
pull requests. Tread with caution though.

File dependencies are taken into account to ensure that if you touched a
utility file, all relevant tests are still executed.

Closes https://github.com/microsoft/playwright/issues/15075
2024-07-23 18:04:17 +02:00
Debbie O'Brien
bf11c95d58
docs: improve dotnet getting started (#30594) 2024-05-02 12:06:39 +02:00
Max Schmitt
010bc29a3c
chore: harden markdown link validation (#30221) 2024-04-03 17:51:32 +02:00
Max Schmitt
032f27ff84
docs: change if: always() to if: !cancelled() (#30102)
Fixes https://github.com/microsoft/playwright/issues/29451

See
https://github.com/microsoft/playwright/issues/29451#issuecomment-2008476721
for investigation.
2024-03-25 19:17:05 +01: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
Colin Harris
bb380691f0
docs: reference GitHub actions/checkout@v4 and actions/setup-node@v4 (#29392) 2024-02-07 09:50:09 +01: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
Max Schmitt
dfd8f25e6c
docs(csharp): refer to net8.0 (new LTS) (#28664) 2023-12-15 10:32:51 -08:00
Jozef Hollý
39a555513b
Add HOME=/root to container samples in docs (#27832)
Reference: #6500
(https://github.com/microsoft/playwright/issues/6500#issuecomment-1664210041)

It seems that this is now required, so this PR applies that to the docs.

Signed-off-by: Jozef Hollý <1708197+j2ghz@users.noreply.github.com>
2023-11-13 10:49:39 -08:00
Debbie O'Brien
a9bfb22852
docs: improve python ci guide (#27724) 2023-10-20 11:02:47 +02:00
Matt Hooper
e786eddf5a
chore: Update README grammar (#27159) 2023-09-22 10:47:48 -07:00
Debbie O'Brien
4b8e528136
docs: update screenshots (#27207)
- add new screenshots
2023-09-21 10:30:19 -07:00
Debbie O'Brien
583964f8dd
docs: move github section (#26792) 2023-09-01 14:42:47 +02:00