Pavel Feldman
f6a768b67b
chore: remove codicon from html report ( #9583 )
2021-10-18 09:30:23 -07:00
Pavel Feldman
432fb453e4
chore(html): only copy trace viewer for reports with traces ( #9579 )
2021-10-18 08:03:04 -07:00
Pavel Feldman
6afa85927e
chore(ui): redesign html report a bit ( #9577 )
2021-10-17 20:58:06 -07:00
github-actions[bot]
f83199fb4a
feat(firefox): roll to r1297 ( #9564 )
...
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2021-10-16 12:39:10 +02:00
Paul Biggar
e473fc6a10
docs(test-runner): afterEach JSDoc description typo ( #9542 )
2021-10-16 12:36:07 +02:00
Feng Yu
0160c18f7a
docs: fix typo retried ( #9562 )
2021-10-15 19:24:03 -07:00
Pavel Feldman
99f3389b3b
feat(html): automatically use console reporter with html ( #9559 )
2021-10-15 19:18:56 -07:00
Yury Semikhatsky
3e054e9ad6
feat(webkit): bump to r1564 ( #9557 )
2021-10-15 17:22:41 -07:00
Yury Semikhatsky
a186278f2e
fix(selectors): empty text matcher ( #9548 )
2021-10-15 17:00:45 -07:00
Pavel Feldman
811d02dbe8
feat(trace): add web manifest ( #9482 )
2021-10-15 16:33:09 -07:00
Pavel Feldman
9135847950
feat(ui): merge stdio in html report ( #9560 )
2021-10-15 16:15:06 -07:00
Pavel Feldman
e31b96cc26
feat(tracing): make context.request appear in the trace ( #9555 )
2021-10-15 15:22:49 -07:00
Dmitry Gozman
4ce765c3ae
feat(trace): highlight targets for accessors and expects ( #9527 )
2021-10-15 15:07:15 -07:00
Max Schmitt
2d3d733af7
chore(codegen): use offsetX instead of clientX for positioned clicks ( #9521 )
2021-10-15 22:21:19 +02:00
Yury Semikhatsky
235cd10a43
fix(runner): clarify where test.use() can be called ( #9486 )
2021-10-15 12:03:26 -07:00
Andrey Lushnikov
7a187d9994
feat: support socks proxy in Fetch API ( #9545 )
2021-10-15 11:33:21 -07:00
Dmitry Gozman
b383c6bf3c
fix: separate Selectors instance per Playwright object ( #9529 )
...
We used to share selectors for inprocess, remote and any internal playwright objects.
2021-10-15 09:21:56 -07:00
Pavel Feldman
458945821f
doc(html): document html reporter ( #9528 )
2021-10-15 08:15:30 -07:00
Max Schmitt
9031c4d2e4
chore(create-playwright): nits and cleanups ( #9537 )
2021-10-15 16:39:12 +02:00
Pavel Feldman
5ea4ec2f7a
feat(html): open show html report when there are failures ( #9526 )
2021-10-14 21:09:41 -07:00
Dmitry Gozman
7a68f2f661
chore: merge Connection.{close,didDisconnect} ( #9524 )
...
This simplifes cleanup logic.
Also markAsRemote() in gridClient.
2021-10-14 20:58:09 -07:00
Yury Semikhatsky
4680ef46de
docs: clarify default retry behavior ( #9525 )
2021-10-14 19:28:47 -07:00
Dmitry Gozman
c711fb35ad
fix(expect): do not rely on displayName ( #9523 )
...
Support for displayName was removed in Node 16.
Switching to Function.name instead.
Relevant V8 change: https://chromium-review.googlesource.com/c/v8/v8/+/2692189
2021-10-14 19:23:45 -07:00
Pavel Feldman
7ee48febf9
chore: html report ui fixes ( #9522 )
2021-10-14 18:54:33 -07:00
Pavel Feldman
75cfe5d1f5
chore: start adding html runner e2e tests ( #9518 )
2021-10-14 15:48:05 -07:00
Maximilian Hils
84a70eae2f
Create userDataDir
if it does not exist ( #9483 )
2021-10-14 11:19:52 -07:00
Pavel Feldman
584014f6fa
feat(html): unhide html reporter ( #9512 )
2021-10-14 11:17:35 -07:00
Dmitry Gozman
9dd17773e6
feat: mark PlaywrightClient's connection as remote ( #9477 )
...
This makes artifacts work as expected for all remote scenarios.
2021-10-14 10:41:03 -07:00
Dmitry Gozman
bb013d14c0
docs: minor changes in apirequest ( #9507 )
2021-10-14 09:48:53 -07:00
Max Schmitt
96be17463e
feat(codgen): support positioned clicks in a canvas ( #9503 )
2021-10-14 17:37:29 +02:00
Max Schmitt
d851f4d58b
Reland chore: update to webpack v5.58.2 ( #9498 )
...
* Revert "Revert "chore: update to webpack v5.58.2 (#9479 )" (#9489 )"
This reverts commit e5a3c9b907
.
* Fix icons
2021-10-14 17:36:59 +02:00
Max Schmitt
1c7a7fcf23
fix: electron launcher ( #9504 )
...
Broken-since: #9446
2021-10-14 16:45:52 +02:00
Joel Einbinder
c8f875a193
chore: move test runner types into the playwright test package ( #9472 )
...
Co-authored-by: Max Schmitt <max@schmitt.mx>
2021-10-14 11:55:08 +02:00
Andrey Lushnikov
4fa6d1e723
feat(firefox): roll to r1296 ( #9494 )
2021-10-14 11:35:39 +02:00
Pavel Feldman
bb77912aee
chore: don't include babel compiled files in webpack bundles ( #9491 )
2021-10-13 19:27:50 -07:00
github-actions[bot]
c054d19a5d
feat(webkit): roll to r1562 ( #9476 )
...
Co-authored-by: Max Schmitt <max@schmitt.mx>
2021-10-14 02:00:25 +02:00
Joel Einbinder
9d3513ab13
chore(create-playwright): some nits ( #9133 )
2021-10-13 17:33:44 -04:00
github-actions[bot]
a885e95646
feat(firefox-beta): roll to r1293 ( #9456 )
2021-10-13 14:32:35 -07:00
Yury Semikhatsky
e827bde1c2
fix(runner): skip global hooks in --list mode ( #9480 )
2021-10-13 14:18:15 -07:00
Joel Einbinder
2a0a44bc09
chore: move diff_match_patch into the test package ( #9475 )
2021-10-13 13:38:26 -07:00
Pavel Feldman
cd99ad0da2
feat(trace): allow multiple traces in a single app, gc traces ( #9478 )
2021-10-13 13:31:54 -07:00
Pavel Feldman
8b1a887756
feat(html): link traces from html report ( #9473 )
2021-10-13 11:07:29 -07:00
Dmitry Gozman
64a3099655
chore(expect): simplify expect implementation ( #9459 )
2021-10-13 08:56:57 -07:00
Pavel Feldman
cdfe075b2a
chore(traceviewer): drop intermediate iframe, add drop handler ( #9455 )
2021-10-12 21:21:06 -07:00
Pavel Feldman
c0945d9d00
chore(trace): make trace viewer a pwa ( #9438 )
2021-10-12 14:42:50 -07:00
Max Schmitt
bcfd47343c
chore: fix package description after monorepo
2021-10-12 23:32:08 +02:00
Max Schmitt
34e933f474
fix(trace-viewer): show warning when opening an empty trace ( #9449 )
2021-10-12 20:11:57 +02:00
Yury Semikhatsky
82ff85b106
fix(matchers): make isNot required in protocol ( #9436 )
2021-10-12 09:01:46 -07:00
Max Schmitt
ded1e718b5
types(test-runner): fix access worker fixtures in test.skip ( #9447 )
2021-10-12 17:44:00 +02:00
Max Schmitt
2210426a6b
chore(electron): show helpful error when no x11 server is available ( #9446 )
2021-10-12 17:42:39 +02:00
Pavel Feldman
9dfc0a3394
chore: make sw global in trace viewer ( #9431 )
2021-10-11 20:52:28 -07:00
Pavel Feldman
876e08315b
fix(expect): continue polling in array-based matchers, fix edge cases ( #9430 )
2021-10-11 14:01:09 -07:00
Max Schmitt
b1160ec239
chore(test-runner): make outputDir based on cwd instead of testDir ( #9360 )
2021-10-11 22:24:46 +02:00
Joel Einbinder
d34b53a0d7
feat(test runner): allow comparing binary files to strings ( #9315 )
...
Co-authored-by: Max Schmitt <max@schmitt.mx>
2021-10-11 21:57:59 +02:00
Max Schmitt
f0ff2a23d2
chore: add README's for packages ( #9432 )
2021-10-11 19:28:10 +02:00
Max Schmitt
9dd6bb8c6a
Revert "feat(test-runner): allow parametrized tests that don't extend base ( #9301 )"
...
This reverts commit f63af830de
.
2021-10-11 17:32:31 +02:00
github-actions[bot]
9e0ee0e37e
feat(chromium): roll to r930007 ( #9428 )
...
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2021-10-11 17:02:46 +02:00
Joel Einbinder
c89d5a50dd
chore: migrate to monorepo ( #9421 )
2021-10-11 16:52:17 +02:00
Max Schmitt
8bfd63e4ba
chore(create-playwright): have better config defaults ( #9362 )
2021-10-07 21:21:56 +02:00
Yevhen Laichenkov
19715300b3
fix(create-playwright): add extra -- for the debug script ( #9257 )
...
Co-authored-by: Max Schmitt <max@schmitt.mx>
2021-10-04 10:55:29 +02:00
Max Schmitt
cd22072685
chore: enable object-curly-spacing in ESLint ( #9168 )
2021-09-27 18:58:08 +02:00
Max Schmitt
c66d72bddb
chore(create-playwright): upload alwas test-results/ to GHA
...
Fixes #9014
2021-09-22 16:41:44 +02:00
Max Schmitt
08544a88a1
chore(create-playwright): cut v0.1.7 release
2021-09-20 09:22:00 +02:00
Max Schmitt
f68ae4a2e0
chore(create-playwright): enhance UX follow-ups and add more verbose Playwright Test config ( #8942 )
2021-09-15 22:07:50 +02:00
Max Schmitt
299a55c562
chore(create-playwright): UX follow-ups ( #8897 )
2021-09-14 13:14:43 +02:00
Max Schmitt
87c2b4b200
chore(create-playwright): roll to 0.1.5 ( #8889 )
2021-09-13 22:48:19 +02:00
Max Schmitt
5eca7aa1d9
feat: add create-playwright package ( #8841 )
2021-09-13 22:05:38 +02:00
Yury Semikhatsky
210ad72228
fix: remove node-fetch dependency, use custom fetch implementation ( #8486 )
2021-08-26 16:18:54 -07:00
Dmitry Gozman
33852635b7
fix(fetch): skip tests on non-default modes, add node-fetch to deps list ( #8425 )
2021-08-24 19:41:29 -07:00
Dmitry Gozman
2ac0c59156
feat(test-runner): rename Test to TestCase ( #7725 )
2021-07-19 14:54:18 -07:00
Dmitry Gozman
167db03f05
feat(test-runner): export reporter api as @playwright/test/reporter
( #7692 )
2021-07-16 21:15:03 -07:00
Dmitry Gozman
47885db116
chore: move install to Registry ( #7433 )
...
This is an effort to consolidate all handling of browser binaries in a single place.
2021-07-06 20:59:16 -07:00
Joel Einbinder
7629587914
fix(test-runner): work with .mjs files ( #7373 )
2021-06-29 15:28:41 -07:00
Joel Einbinder
0af1f4399d
fix(test-runner): fix default export breaking on installation tests ( #7331 )
2021-06-25 22:52:04 -07:00
Joel Einbinder
7caf05b24a
fix(playwright-test): have the proper default export ( #7328 )
...
There are 3 ways to import `@playwright/test` library in the modern Node.js ecosystem:
- Using `require`: works great, this patch doesn't change it
- Using `import` statement from `.mjs` file - we have wrong `default` for @playwright/test that should be a `test`. This is what test checks for
- Using `import test from '@playwright/test'` from `.ts` file - was broken because TypeScript thought it's a CJS module, whereas it's a ESM module in reality.
Also, typescript types import from `.d.ts` file was broken because we had no default export (`export *` syntax does not export default).
2021-06-25 15:29:22 -07:00
Pavel Feldman
deec8a4adb
docs: make docs test-first ( #7214 )
2021-06-18 10:09:38 -07:00
Dmitry Gozman
b625a04adc
types: move exported objects from index.d.ts to overrides.d.ts ( #7152 )
...
This way we generate these types right away, without duplicating them everywhere.
2021-06-15 15:06:18 -07:00
Andrey Lushnikov
afa9d69b63
test: fix installation tests ( #7069 )
...
This was regressed by 3b1bae8a40
2021-06-11 13:56:41 +02:00
Andrey Lushnikov
55da16d8cd
Revert "feat: switch to the Firefox Stable equivalent by default ( #6926 )" ( #6947 )
...
This reverts commit a25b11659be8887b700311180fcd3653aa9e472b.
In a discussion with Dmitry Gozman we decided to revert this and instead
proceed with the following approach:
- rename `//browser_patches/firefox` to `//browser_patches/firefox-beta`
- rename `//browser_patches/firefox-stable` folder to
`//browser_patches/firefox`
In all of the folders, we will keep the `BUILD_NUMBER` original so that
it doesn't clash on the CDN.
2021-06-07 15:55:01 -07:00
Andrey Lushnikov
a1e8d2d531
feat: switch to the Firefox Stable equivalent by default ( #6926 )
...
This patch:
- starts downloading Firefox Stable equivalent by default
- starts running Firefox-Stable on our smoke tests (tests-1)
- starts running Firefox-Beta on our CQ1 tests (tests-2)
Note: there's a little confusion right now with browser names:
- `firefox-stable` - firefox-stable equivalent
- `firefox`- firefox-beta equivalent
I'll rename `firefox` to `firefox-beta` in a follow-up.
Fixes #6817
2021-06-07 15:00:23 -07:00
Dmitry Gozman
f745bf1fbc
chore: bring in folio source ( #6923 )
...
- Source now lives at `src/test`.
- Former folio tests live at `tests/playwright-test`.
- We use `src/test/internal.ts` that exposes base test without
Playwright fixtures for most tests (to avoid modifications for now).
- Test types live in `types/testFoo.d.ts`.
- Stable test runner is installed to `tests/config/test-runner` during `npm install`.
- All deps including test-only are now listed in `package.json`.
Non-test deps must also be listed in `build_package.js` to get included.
2021-06-06 17:09:53 -07:00
Dmitry Gozman
3de3a88930
feat(test): introduce npx playwright test
( #6816 )
2021-06-03 08:07:55 -07:00
Dmitry Gozman
33c2f6c31e
chore: do not bundle api.json and protocol.yml ( #6841 )
...
These are only needed for the driver, so bundle them
in the driver explicitly.
2021-06-02 14:01:05 -07:00
Max Schmitt
79b244a2f4
chore: use bash instead of sh in code blocks ( #6847 )
2021-06-02 18:23:06 +02:00
Andrey Lushnikov
cb4adb1446
feat: install chrome-beta via cli ( #6831 )
...
This patch starts introduces `npx playwright install chrome-beta`
command and switches our Chrome Beta tests to it.
2021-06-01 18:26:12 -07:00
Dmitry Gozman
24dca969b6
chore: remove electron/android from build_packages ( #6827 )
...
We do not update these packages anymore, and bundle the code in playwright.
2021-06-01 15:53:47 -07:00
Max Schmitt
9592486225
feat: use up2date Chromium user-agents for device descriptors ( #6594 )
2021-05-18 09:29:48 +02:00
Andrey Lushnikov
eb7b4dea0d
tests: disable certain installation tests on Node v16 ( #6544 )
...
NPM7 that comes with Node v16 swallows output from installation
scripts, so certain tests don't work.
2021-05-12 13:11:59 -07:00
Max Schmitt
e0aaef5eab
docs: get rid of dollar sign prefix in code snippets ( #6494 )
2021-05-11 20:47:48 +02:00
Max Schmitt
a59a494e64
chore: drop support for Node.js 10 ( #6371 )
2021-04-30 07:49:10 -07:00
Max Schmitt
9cd89ae052
fix: host dependency validation ( #6227 )
2021-04-20 18:54:53 +02:00
Yury Semikhatsky
e4ae6503d7
fix(inspector): fall back to custom executable path for UI ( #6214 )
2021-04-16 15:19:44 -07:00
Dmitry Gozman
bd8433ba49
test: cleanup various testing env variables ( #6155 )
2021-04-09 07:59:09 -07:00
Joel Einbinder
779355ad51
feat(types): make the template on BrowserType optional ( #6142 )
...
This makes it much nicer to use `BrowserType` because it no longer has a template.
Technically a breaking change because of the rare edge case where someone used their own non-browser type inside the template, but I don't consider that intended behavior and think this is fine.
2021-04-08 10:27:24 -07:00
Pavel Feldman
a7630c91d5
api: remove Chromium* classes ( #6040 )
2021-04-01 18:47:14 -07:00
Pavel Feldman
14ccc80cb3
fix(android): bundle android driver in all settings ( #5883 )
2021-03-22 14:25:40 -07:00
Andrey Lushnikov
2064d27dc6
fix(installer): retain browsers installed via Playwrigth CLI ( #5904 )
...
Browser registry is responsible for 3 things:
1. Remove downloaded browsers if there are no packages that refer to them
2. Install default browsers needed for the current package
3. Install browsers on-demand when used through Playwright CLI
Currently, registry relies on a single "download" field in `browsers.json`
to carry both (1) and (2). However, browsers in (3) are marked as
`download: false` so that they aren't installed automatically in (2), so
auto-remove procedure in (1) removes them on subsequent installation.
One possible approach to fix this would be modifying package's `browsers.json` to
change `download: false` to `true` when browsers are installed with
Playwright CLI. This approach was explored here:
bc04a51800
We decided against this since we have a history of issues related to
package modifications after NPM installation. This breaks all
sorts of yarn/npm caching mechanisms.
Instead, this patch is a two-step refactor:
- remove the "download" field in `browsers.json`. Now, all registries
(including old ones from previously-released versions) will retain any
browsers that are mentioned in the `browsers.json`.
- add a new flag "installByDefault", that is **only used** for default
installation.
With this change, the registry tasks are done like this:
- (1) auto-removal: if browser has a back reference, it is retained,
otherwise it is removed from registry
- (2) default installation: use only `installByDefault` to carry default installations
- (3) CLI installation: simply installs browsers. Since we retain
everythings that's referenced in (1), browsers aren't removed.
Fixes #5902
2021-03-22 11:43:29 -07:00
Yury Semikhatsky
ddfdf8a76a
fix: install chromium along with ffmpeg ( #5774 )
2021-03-10 14:01:35 -08:00
Andrey Lushnikov
f3a09210da
test: move installation tests out of playwright tree ( #5573 )
2021-02-23 19:17:15 -08:00
Dmitry Gozman
5cb914b2fe
fix(types): do not use import('electron') ( #5572 )
2021-02-23 18:48:34 -08:00