Commit graph

9889 commits

Author SHA1 Message Date
Playwright Service d7ad0a0180
cherry-pick(#21318): chore: have pretty error if CT config has no defineConfig (#21321) 2023-03-01 16:42:42 -08:00
Pavel Feldman 128b2ff1d5 cherry-pick(#21283): chore: do not generate history entries on snapshot switch 2023-03-01 13:47:16 -08:00
Yury Semikhatsky e9fe663e89
cherry-pick(#21104): chore: consolidate http/https fetching (#21284)
Fixes #21227

Fixes https://github.com/microsoft/playwright/issues/20784 Supersedes
https://github.com/microsoft/playwright/pull/21076
2023-03-01 12:55:49 -08:00
Pavel Feldman 249825f1ac cherry-pick(#21311): chore: point to pwt cli, a direct dependency 2023-03-01 12:18:52 -08:00
Yury Semikhatsky db82ae0179
cherry-pick(#21238): fix(runner): finish dispatching if remaining tes… (#21239)
…ts were skipped

Fixes #21226
2023-02-27 18:41:53 -08:00
Pavel Feldman 4b3932de9a cherry-pick(#21169): fix(trace): update snapshot on keyboard selection 2023-02-23 14:40:45 -08:00
Andrey Lushnikov 81d23946e8
chore: mark 1.31.1 (#21123) 2023-02-22 19:01:42 -08:00
Andrey Lushnikov a4a3f722ba
fix: use fixed Chromium on windows (#21111)
Fixes #21093
2023-02-22 16:05:28 -08:00
Nowell Strite 53ecdf7db6 cherry-pick(#21106): fix(loader): experimentalLoader with node@18
There is currently a bug when running `node@18.14.2` when running with
experimentalLoader

```
TypeError: The URL must be of scheme file
  at new NodeError (node:internal/errors:399:5)
  at Object.fileURLToPath (node:internal/url:1492:11)
  at resolve (./node_modules/@playwright/test/lib/experimentalLoader.js:39:48)
  at nextResolve (node:internal/modules/esm/loader:163:22)
  at ESMLoader.resolve (node:internal/modules/esm/loader:838:24)
  at ESMLoader.getModuleJob (node:internal/modules/esm/loader:424:7)
  at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:79:21)
```

This came from my test `vrt.spec.ts` which had a non package import
inside of it

```ts
import fs from "node:fs/promises"
```

The test run failed due to node imports not returning fileUrls when
resolved.

---------

Co-authored-by: Nowell Strite <nstrite@nvidia.com>
2023-02-22 15:02:39 -08:00
Debbie O'Brien 4413b01e40 cherry-pick(#20994): docs: fix release notes 2023-02-21 10:36:06 -08:00
Dmitry Gozman 1cad99ccf5 cherry-pick(#21008): docs: update auth docs to remove cross-run caching 2023-02-21 09:55:40 -08:00
Playwright Service 725dd8b4b1
cherry-pick(#21010): chore: align js routing logic with other langs (#21036)
This PR cherry-picks the following commits:

- ae05808f4b

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-02-20 16:29:43 +01:00
Dmitry Gozman 63642bd77c cherry-pick(#20997): chore: update release notes for 1.31 2023-02-17 17:52:33 -08:00
Dmitry Gozman bb3b96e433 cherry-pick(#20933): chore: 1.31 release notes for js 2023-02-17 17:52:09 -08:00
Andrey Lushnikov d32d466f2f cherry-pick(#20998): fix: stricter condition for Firefox codegen tests workaround
This patch fixes the following tests on WebKit @ Darwin:
- library/inspector/cli-codegen-2.spec.ts:197:7 › cli codegen › should
download files
- library/inspector/cli-codegen-2.spec.ts:428:7 › cli codegen › should
update hover model on action
2023-02-17 23:20:51 +03:00
Pavel Feldman 31ace756d8 cherry-pick(#20973): chore: fix cli executable bits 2023-02-16 19:51:45 -08:00
Dmitry Gozman 822227f925 cherry-pick(#20969): chore: release notes for 1.31 for java, python, csharp 2023-02-16 18:11:37 -08:00
Yury Semikhatsky f276edf8f1
cherry-pick(#20968): docs: Route.fetch.maxRedirects in java (#20970) 2023-02-16 17:08:16 -08:00
Yury Semikhatsky b7d36117d1
cherry-pick(#20966): fix(docs): move callback of Worker.waitForClose to the end of param list (#20967) 2023-02-16 15:44:32 -08:00
Dmitry Gozman 07af3c1439
cherry-pick(#20962): chore: fix docs for python and java (#20964) 2023-02-16 13:49:53 -08:00
Andrey Lushnikov a8542d86cf cherry-pick(#20960): fix: simplify protocol for toBeInViewport 2023-02-17 01:02:55 +06:00
Pavel Feldman 8d3481ea22 cherry-pick(#20937): chore: minor trace viewer UI tweaks 2023-02-16 08:18:29 -08:00
Pavel Feldman 24be5c2881 cherry-pick(#20927): chore(junit): render project as an agent name / hostname 2023-02-16 08:18:05 -08:00
Dmitry Gozman 6d152e9b2f
chore: mark v1.31.0 (#20931) 2023-02-15 17:20:09 -08:00
Yury Semikhatsky 90c4e6f9b2
chore: revert sharded html report (#20923)
We've decided not to ship it in the current form.

#10437
2023-02-15 12:38:03 -08:00
IlinAlekseyS 5899348936
fix(best-practices): delete dublicate sentence (#20885) 2023-02-15 20:03:56 +01:00
Andrey Lushnikov 4feb7c9e3b
fix: best-effort support for KDE Neon (#20920)
This is a yet-another linux distribution based on Ubuntu.

Fixes #20838
2023-02-15 09:13:14 -08:00
Andrey Lushnikov 5f9e2f3db9
chore: fix inspector cli firefox tests flakiness (#20919) 2023-02-15 09:12:37 -08:00
Dmitry Gozman 91da67fab1
test: remove magic headers in ttest (#20867)
Instead, explicitly import from '@playwright/test'.
2023-02-14 19:20:56 -08:00
Pavel Feldman 08be39a80e
fix(watch): fix the tests on win (#20844) 2023-02-14 14:55:49 -08:00
Playwright Service 550fefaa6f
feat(firefox-beta): roll to r1380 (#20894)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-02-14 14:17:47 -08:00
Playwright Service 6546f1d082
feat(firefox): roll to r1378 (#20891)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-02-14 14:16:38 -08:00
Pavel Feldman 7f0763d789
chore: hide watch mode, it is not ready (#20905) 2023-02-14 13:22:44 -08:00
Pavel Feldman 798696a18a
chore: fix context reuse disposal (#20876)
Fixes: https://github.com/microsoft/playwright/issues/20409
2023-02-14 12:56:47 -08:00
Dmitry Gozman 42c606e181
docs: improve authentication guide (#20882) 2023-02-14 11:34:28 -08:00
Debbie O'Brien b90b18daf3
docs: change videos to use new youtube component (#20899) 2023-02-14 17:09:53 +01:00
Andrey Lushnikov 72942e81d5
chore: fixes to toBeInViewport (#20870) 2023-02-13 15:21:40 -08:00
Andrey Lushnikov 94b859f471
feat: roll Firefox and Firefox Beta (#20878)
Fixes #20791
2023-02-13 15:21:05 -08:00
Sander ec17a1ac75
chore(ct): bump packages (#20724) 2023-02-13 13:19:59 -08:00
Andrey Lushnikov 3a685ecae4
fix: hide highlight in recorder before toHaveScreenshot command (#20874)
Fixes #20866
2023-02-13 13:15:55 -08:00
Andrey Lushnikov 31460f7ad6
chore: do not build docker image for installation tests (#20871)
This used to be needed to test docker integration and is not needed
any more.
2023-02-13 12:31:38 -08:00
Dmitry Gozman 6d03211439
fix(test runner): --list should ignore '.only' annotations (#20868) 2023-02-13 11:13:30 -08:00
Andrey Lushnikov fdcd7b549d
chore: mark comparator option back as experimental (#20816)
This reverts commit 303c5998f8.

Reason for revert: I tried enabling `ssim-cie94` by default on
ionic-framework test suite, and it proves to be overly strict for their
usecase.
2023-02-13 11:11:44 -08:00
Debbie O'Brien ecc2e4aa57
docs: add videos for vscode guide (#20865) 2023-02-13 19:43:05 +01:00
Joel Einbinder 997dfa9274
fix(reporter): properly indent multiline attachments (#20847)
Text attachments were only indented on the first line.
2023-02-13 10:28:34 -08:00
Pavel Feldman e9ca483666
chore: dim watch separator (#20836) 2023-02-12 10:00:40 -08:00
Dmitry Gozman de69b766d9
test: code health in ttest (#20837)
- Remove duplicate tests.
- Remove unused test helpers.
- Print full watch output on failures.
- Unflake some tests.
2023-02-10 20:26:19 -08:00
Dmitry Gozman 6b69d23f44
fix(actions): ignore indeterminate for isChecked api (#20834)
Fixes #20190.
2023-02-10 18:56:45 -08:00
Dmitry Gozman 77b598110f
fix(docs): inline java, js and csharp overrides (#20833)
This fixes the order of arguments as well as many incorrect arguments
around `WaitFor()` methods.
2023-02-10 15:14:28 -08:00
Dmitry Gozman 789b1c75e6
fix(expect): report received when timedOut during oneShot (#20806) 2023-02-10 14:59:21 -08:00