Playwright Service
8671bfc53f
feat(firefox): roll to r1371 ( #20115 )
...
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-01-13 22:37:26 -08:00
Sander
5b3a306284
test(ct): react vite slice by feature ( #20098 )
2023-01-13 18:15:43 -08:00
Sander
10404706e9
test(ct): react slice by feature ( #20099 )
2023-01-13 18:15:33 -08:00
Pavel Feldman
d1c161ce99
chore: merge the util exports ( #20110 )
2023-01-13 13:50:38 -08:00
Pavel Feldman
736cf5c585
fix(tsx): resolve .js imports to .tsx as well ( #20092 )
...
Fixes: https://github.com/microsoft/playwright/issues/20039
2023-01-13 10:49:10 -08:00
Dmitry Gozman
3a1eb2abda
chore: fix racy emptyOutDir in trace-viewer build ( #20090 )
2023-01-13 06:42:56 -08:00
Pavel Feldman
e065d608b6
chore: introduce defineConfig for easier JS typing ( #20061 )
...
Fixes https://github.com/microsoft/playwright/issues/19694
2023-01-12 13:12:02 -08:00
Yury Semikhatsky
730a197c80
feat: config.globalScripts ( #20062 )
...
Introduce config.globalScripts. Tests from the matching files will run
before all projects. We'll only allow beforeAll/afterAll instead of
tests in such files (next PR).
Global scripts are executed as part of 'Global Scripts' project which is
not present in FullConfig.projects but may be referenced by
corresponding global setup Suites.
Signed-off-by: Yury Semikhatsky <yurys@chromium.org>
Co-authored-by: Dmitry Gozman <dgozman@gmail.com>
2023-01-12 13:02:54 -08:00
Alex
b984bb9ad6
fix: serviceWorker.register function ( #20072 )
2023-01-12 10:47:45 -08:00
Sander
4a038b726d
test(ct): vue2 slice by feature ( #20080 )
2023-01-12 10:46:15 -08:00
Dmitry Gozman
862125e122
test: record trace+video at the same time ( #20082 )
...
Fixes #12266 .
2023-01-12 10:44:20 -08:00
Sander
5d86d6f662
test(ct): vue cli slice by feature ( #20083 )
2023-01-12 10:43:47 -08:00
Playwright Service
c111a0c1f7
feat(chromium-tip-of-tree): roll to r1077 ( #20077 )
...
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-01-12 19:13:04 +01:00
Max Schmitt
1c1955a6e7
fix: do not write to stdout on cssTokenizer parse error ( #20012 )
...
Fixes https://github.com/microsoft/playwright/issues/20074
2023-01-12 19:10:01 +01:00
Playwright Service
1430c5b59c
feat(firefox-beta): roll to r1373 ( #20058 )
...
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-01-12 08:59:34 -08:00
Playwright Service
cd6221e6c6
feat(firefox): roll to r1370 ( #20050 )
...
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-01-12 08:58:23 -08:00
Debbie O'Brien
fa49803ca0
docs: Best practices ( #19634 )
2023-01-12 12:45:57 +01:00
Dmitry Gozman
9a5df720ff
chore: fix build/watch script for bundles and vite-powered packages ( #20055 )
2023-01-11 18:36:04 -08:00
Yevhen Laichenkov
ed1c4b582f
docs: add missed request fixture in the pre-defined list ( #20038 )
2023-01-11 14:07:57 -08:00
Sander
c4b9654fa7
test(ct): svelte slice by feature ( #20045 )
...
follow up for: https://github.com/microsoft/playwright/pull/19657 .
2023-01-11 14:07:02 -08:00
Sander
ff23b49457
test(ct): solid slice by feature ( #20048 )
2023-01-11 14:06:43 -08:00
Max Schmitt
a7495c3326
fix: use no internal selectors for frame locators ( #19964 )
...
Fixes https://github.com/microsoft/playwright/issues/19406
2023-01-11 21:53:19 +01:00
Dmitry Gozman
4f837690e2
fix(connect): do not log ws query params ( #20047 )
2023-01-11 12:27:27 -08:00
Dmitry Gozman
bd4efa9dc1
test: update tests for waituntil:commit ( #20042 )
...
Instead of never finishing the response which works differently across
browsers, stall the required script.
This makes "DOMContentLoaded" to never fire and properly tests the
"commit" signal.
2023-01-11 10:16:51 -08:00
Yury Semikhatsky
0206d5fb18
docs: update route.fetch example to use new api ( #20040 )
2023-01-11 09:15:21 -08:00
Mithun Shanbhag
2394debce5
docs(ci): docker container specs go inside jobs ( #20020 )
...
Signed-off-by: Max Schmitt <max@schmitt.mx>
Co-authored-by: Max Schmitt <max@schmitt.mx>
2023-01-11 10:44:27 +01:00
Dmitry Gozman
e674ea217f
chore: respect headless option when reusing browser ( #19980 )
...
References #19746 .
2023-01-10 10:49:53 -08:00
Max Schmitt
3918e33c91
chore: trace viewer UX (auto scroll to action + timeline duration) ( #20001 )
...
Fixes https://github.com/microsoft/playwright/issues/19916
2023-01-10 18:33:20 +01:00
Max Schmitt
0fe327c21b
chore: return Promise<any> in {page,context}.route ( #20005 )
...
Fixes https://github.com/microsoft/playwright/issues/19855
Closes https://github.com/microsoft/playwright/pull/19856
2023-01-10 18:07:17 +01:00
Max Schmitt
e2a2196e6a
chore(html-reporter): show project name always for the test file ( #19905 )
...
Fixes https://github.com/microsoft/playwright/issues/19874
2023-01-10 17:11:38 +01:00
Playwright Service
db5087e951
feat(chromium): roll to r1043 ( #19991 )
...
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-01-10 14:55:27 +01:00
Playwright Service
394ed6db62
feat(chromium-tip-of-tree): roll to r1075 ( #19993 )
...
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-01-10 14:55:10 +01:00
Andrey Lushnikov
9943bcfcd8
fix: do not subscribe to SIGINT signal unless lock is acquired ( #19978 )
...
Subscription to SIGINT handler removes default handler.
Fixes #19418
2023-01-09 20:19:28 -08:00
Pavel Feldman
6022a4098f
chore: deprecate page.waitForNavigation, locator.elementHandle ( #19977 )
2023-01-09 20:04:04 -08:00
Pavel Feldman
3c8bc0b2f9
chore: minor trace viewer ui tweaks ( #19979 )
2023-01-09 19:51:33 -08:00
Pavel Feldman
3f0adf5dd0
chore: release from pause when the page closes ( #19975 )
...
Fixes: https://github.com/microsoft/playwright/issues/19168
2023-01-09 18:49:18 -08:00
Andrey Lushnikov
8f62aa9335
chore: vendor proper-lockfile dependency ( #19969 )
...
This patch vendors the
https://github.com/moxystudio/node-proper-lockfile
project we rely to manage Playwright Registry.
The reason to vender is the following upstream issue that
didn't get resolved in almost a month:
https://github.com/moxystudio/node-proper-lockfile/issues/111
Follow-up will apply the fix for the issue to the vendored file.
NOTE: this patch also inlines all code in a single file.
References #19418
2023-01-09 17:13:58 -08:00
Dmitry Gozman
28577afde4
feat(soft expect): mark steps with failed soft expects as failed ( #19973 )
...
Fixes #19673 .
2023-01-09 16:17:06 -08:00
Dmitry Gozman
7d2cc06355
docs: add usage sections to Locator methods ( #19968 )
2023-01-09 13:06:25 -08:00
Sander
a5f4717192
test(ct): vue vite slice by feature ( #19657 )
2023-01-09 12:36:33 -08:00
Yury Semikhatsky
a39a97f0ee
chore: setup -> test.projectSetup ( #19932 )
...
* Changed `setup` to `test.projectSetup`
* Only `test.projectSetup.only` is supported on the new method
* test.* methods except for before/after/Each/All hooks can be called
inside the project setup files
2023-01-09 11:21:48 -08:00
Max Schmitt
e3d615e9f2
docs: add Electron troubleshooting note ( #19954 )
...
Fixes https://github.com/microsoft/playwright/issues/19854
Signed-off-by: Max Schmitt <max@schmitt.mx>
Co-authored-by: Pavel Feldman <pavel.feldman@gmail.com>
2023-01-09 18:39:54 +01:00
Pavel Feldman
6083926111
chore: render readable title separator in errors ( #19754 )
2023-01-09 09:33:09 -08:00
Vincent G
bb275cccb6
docs(test-cli): typo for tests at a specific line ( #19908 )
2023-01-09 09:14:31 -08:00
Niklas Haag
87b14ea737
docs(writing-tests-js) Fix grammar mistake ( #19958 )
2023-01-09 17:18:54 +01:00
Dmitry Gozman
830c3c9f0f
fix(reuse): workaround long sw unregister ( #19930 )
...
Bogus `importScripts()` sometimes makes `unregister()` hang for long
time. We detect this case and not await it.
Fixes #19789 .
2023-01-06 17:02:40 -08:00
Andrey Lushnikov
2a49c5e498
feat(expect): introduce expect(locator).toIntersectViewport() ( #19901 )
...
This is a new web-first assertion that should be used like this:
```ts
test('should work', async ({ page }) => {
const locator = page.locator('body');
// New web-first assertion.
await expect(locator).toIntersectViewport();
// The same functionality.
await expect.poll(() => locator.viewportRatio()).toBeGreaterThan(0);
});
```
Fixes #8740
2023-01-06 16:56:24 -08:00
Andrey Lushnikov
1385007185
test: fix locator.viewportRatio() tests ( #19931 )
...
Drive-by: make sure `locator.viewportRatio()` returns `0`
for non-existing element.
2023-01-06 16:55:38 -08:00
Max Schmitt
7bbaf2af21
fix(docker): take language binding version in consideration ( #19924 )
2023-01-06 19:47:37 +01:00
Dmitry Gozman
b376110b77
docs: add proper usage for some test apis ( #19925 )
2023-01-06 10:26:23 -08:00