Dmitry Gozman
603861c48d
fix: revert toMatchSnapshot deprecation ( #27089 )
...
- This reverts commit
8348f66107
landed in #26718 .
- Update docs to point towards `toHaveScreenshot`.
2023-09-14 12:52:41 -07:00
Max Schmitt
5faa66912c
docs: add types to Python run() defs ( #27044 )
...
Fixes https://github.com/microsoft/playwright-python/issues/2071
2023-09-13 15:18:15 +02:00
Yury Semikhatsky
fac4560a82
chore(types): host, port in html reporter config ( #27027 )
2023-09-12 13:38:10 -07:00
Pavel Feldman
02c72e545b
feat(onEnd): allow overriding the exit code ( #27010 )
...
Fixes: https://github.com/microsoft/playwright/issues/26858
2023-09-12 13:37:30 -07:00
Max Schmitt
466088215e
chore: clear NPM cache of Docker image ( #27000 )
2023-09-12 08:14:45 +02:00
Dmitry Gozman
186f86905c
chore: make @playwright/test
depend on playwright
( #26946 )
2023-09-08 14:23:35 -07:00
Ivo Berger
f219f9fd41
devops: fix tags on jammy stable images ( #26834 )
2023-09-03 09:57:09 +02:00
Max Schmitt
cc30d72b0b
test: roll android chromium to 1190572 ( #26807 )
2023-08-31 18:08:27 +02:00
Pavel Feldman
34c6197f9e
chore: include start/endTime and duration in onEnd report callback ( #26760 )
...
Fixes https://github.com/microsoft/playwright/issues/23637
2023-08-29 10:56:21 -07:00
Dmitry Gozman
36347e7fea
feat: make playwright
package not install browsers automatically ( #26672 )
...
Additionally introduce `@playwright/browser-<browser>` packages that
just download the respective browser, but do not export anything.
References #26614 .
2023-08-27 07:24:35 -07:00
Pavel Feldman
eb9ef64e7d
fix(android): use domain socket suffix chrome can discover ( #26724 )
...
Fixes: https://github.com/microsoft/playwright/issues/26721
2023-08-25 19:30:09 -07:00
Dmitry Gozman
8348f66107
feat: deprecate toMatchSnapshot for buffers ( #26718 )
...
These are usually used for screenshots instead of toHaveScreenshot.
String-based snapshots are left as is.
<img width="836" alt="deprecated"
src="https://github.com/microsoft/playwright/assets/9881434/d02818da-7eea-47fc-8ea8-4104b0dd49b5 ">
---
Also deemphasized toMatchSnapshot throughout all docs.
Fixes #26612 .
2023-08-25 18:20:01 -07:00
Dmitry Gozman
81cc39ea6e
feat(expect): narrow down available assertions for Page/Locator/APIResponse ( #26658 )
...
Fixes #26381 .
2023-08-23 13:14:39 -07:00
Richard Blažo
bcc30bc71e
feat: add title for before and after hooks ( #26523 )
2023-08-21 09:50:22 -07:00
Marcin Strzyz
192b697488
chore: remove old webpack folder structure ( #26560 )
2023-08-19 16:16:44 -07:00
Pavel Feldman
576608b69d
chore: revert #24598 ( #26484 )
2023-08-15 11:29:33 -07:00
Max Schmitt
2deabefa71
fix: Locator.evaluateHandle types ( #26469 )
...
Fixes https://github.com/microsoft/playwright/issues/26449
2023-08-14 18:27:25 +02:00
Dmitry Gozman
c37dfb379b
docs: make sure usage comes after description when templating ( #26420 )
2023-08-10 14:48:26 -07:00
Playwright Service
b252f8ba27
chore(driver): roll driver to recent Node.js LTS version ( #26399 )
2023-08-10 12:25:32 +02:00
Pavel Feldman
08d6abab4a
chore: allow merging defineConfig ( #26390 )
2023-08-09 17:23:34 -07:00
Pavel Feldman
65ac0d5256
chore: add k8s grid deployments ( #26359 )
2023-08-08 18:46:32 -07:00
Pavel Feldman
6731f5b6d5
chore: grid placeholder ( #24598 )
2023-08-04 08:38:07 -07:00
Max Schmitt
b0473b71cd
chore: limit docs snippet length to 100 ( #24563 )
2023-08-02 11:23:47 +02:00
Dmitry Gozman
57ab732fb8
chore: support npm run build -- --sourcemap
( #24529 )
2023-07-31 13:53:28 -07:00
Dmitry Gozman
a74101d98f
docs: document expect's asymmetric matchers ( #24498 )
...
References #24460 , #24417 .
2023-07-28 14:04:01 -07:00
Max Schmitt
c6a0e5d02c
devops: fix parameterised tests on flakiness dashboard ( #24486 )
...
Fixes https://github.com/microsoft/devops.playwright.dev/issues/2
2023-07-28 16:24:17 +02:00
Dmitry Gozman
ea6d127f28
feat(connect): exposeNetwork option ( #24436 )
2023-07-26 17:29:31 -07:00
Dmitry Gozman
c8b45aa844
chore: validate markdown links in doclint ( #24444 )
...
Fixes #24421 .
2023-07-26 16:15:07 -07:00
Max Schmitt
c4ecdcfc22
chore: lint code snippet languages ( #24381 )
...
Follow-up to https://github.com/microsoft/playwright/pull/24367 .
2023-07-25 00:32:46 +02:00
Max Schmitt
1634ec8766
chore: introduce code snippet linting infra ( #23960 )
2023-07-24 22:27:44 +02:00
Playwright Service
fdfe4ca275
chore(driver): roll driver to recent Node.js LTS version ( #24321 )
2023-07-20 12:15:16 +02:00
Andrey Lushnikov
1fdd7541e0
chore: add firefox-asan for stress tests ( #24049 )
2023-07-19 05:53:52 -07:00
Pavel Feldman
49c1f9eb02
feat(ui): run deps in UI mode if dep projects are checked ( #24245 )
2023-07-15 15:11:31 -07:00
Andrey Lushnikov
9af2b518f2
fix: exclude tracesDir
option from launchOptions
fixture ( #24086 )
...
Fixes https://github.com/microsoft/playwright/issues/23645
2023-07-06 13:31:44 -07:00
Pavel Feldman
0409bfca56
chore: ensure module deps in ct-core ( #24056 )
...
Fixes https://github.com/microsoft/playwright/issues/23823
2023-07-06 12:01:45 -07:00
Patrick Shaw
6e78dcb7dc
fix: Allow portable bash paths for systems including NixOS ( #23889 )
...
Although very common, bash is not guaranteed to be located at
`/bin/bash`. NixOS is an example of this.
More commonly, `/bin/bash` can be quite out of date. An example of this
is MacOS's version of `bash`. This realistically won't affect Playwright
but it's worth noting. You can technically update MacOS's system version
of bash but you need elevated permissions to do so.
By using `/usr/bin/env bash` instead of `/bin/bash` we can execute
Playwright's bash scripts in like NixOS and generally improve the
selection behaviour for bash in other systems too.
Some discussion of why it's worth favouring `/usr/bin/env bash` over
`/bin/bash`:
- Discusses `/bin/bash` missing in NixOS:
https://discourse.nixos.org/t/add-bin-bash-to-avoid-unnecessary-pain/5673
- Some general commentary on why `/usr/bin/env bash` is favoured:
https://askubuntu.com/a/1402721
- Points out how old bash is in MacOS:
https://itnext.io/upgrading-bash-on-macos-7138bd1066ba
Improves situation at #5501
2023-07-03 06:27:06 -07:00
Max Schmitt
f7b34e3172
fix(dotnet): generate bool? correctly in generated transport channel types ( #23966 )
...
https://github.com/microsoft/playwright-dotnet/issues/2581
2023-06-29 22:16:16 +02:00
Max Schmitt
fef029e98e
docs: code snippet alignments ( #23959 )
2023-06-29 18:26:19 +02:00
Playwright Service
b15cdc8ce8
chore(driver): roll driver to recent Node.js LTS version ( #23854 )
...
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-06-22 12:06:44 +02:00
Dmitry Gozman
fbb5d48283
feat(expect): roll to v29.5.0 ( #23629 )
...
There is a breaking in change in the `MatcherContext` that is passed to
matcher functions, so we now have `!!this.isNot` in a few places. The
same could happen to custom matcher in the wild.
```ts
// Old
{
isNot: boolean;
promise: string;
}
```
```ts
// New
{
isNot?: boolean;
promise?: string;
}
```
Fixes #23612 .
2023-06-19 15:18:59 -07:00
Andrey Lushnikov
2bc8cf2fc7
fix: drop expect.configure({ poll })
from types ( #23661 )
...
`poll` option is not actually supported as of June 12, 2023.
Fixes https://github.com/microsoft/playwright/issues/23622
2023-06-12 11:07:39 -07:00
Pavel Feldman
294f5c965a
chore: fix a lint on win ( #23554 )
2023-06-06 14:50:44 -07:00
Rui Figueira
ba69de8c7c
fix(check-deps): normalize paths in posix ( #23513 )
2023-06-05 12:33:54 -07:00
Max Schmitt
80fe9748eb
chore: render plain class links in types ( #23508 )
2023-06-05 18:50:44 +02:00
Max Schmitt
10ec3cfa2a
chore: generate docs versions in pw.dev ( #23412 )
...
https://github.com/microsoft/playwright/issues/23395
2023-06-01 01:14:00 +02:00
Dmitry Gozman
06318d52d6
chore: support import { type Foo }
in check deps ( #23405 )
2023-05-31 14:08:59 -07:00
Dmitry Gozman
00b34dddb2
chore: move TestServer under test/ ( #23287 )
2023-05-25 15:11:16 -07:00
Pavel Feldman
64dde29788
chore: move to npx playwright-core install when using core ( #23260 )
2023-05-24 12:16:59 -07:00
Andrey Lushnikov
8ebe4dc81a
devops: do not use NPX during docker container build ( #23213 )
...
The postmortem of the broken docker image:
- We use `playwright-core` package when bootstrapping our docker
container.
- Due to accidental removal of `bin` entry in the `playwright-core` (see
https://github.com/microsoft/playwright/issues/23206 ), the `npx
playwright install --with-deps` was using the last published
Playwright version instead of a locally-built playwright binary
This patch starts using `npx exec --no` to make sure that we never call
remote commands during docker image build.
2023-05-22 19:21:09 -07:00
Dmitry Gozman
ab7e794bf7
feat(shard): introduce mode: 'default'
( #23023 )
...
This mode allows a suite to opt-out from parallelism. Useful to setup
multiple suites running in parallel, with each suite not being sharded.
References #22891 .
2023-05-18 13:07:22 -07:00