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
Andrey Lushnikov
d4e50bedf1
fix: do not install media pack on non-server windows ( #6925 )
2021-06-06 14:22:05 -07:00
Pavel Feldman
4b5ad33cf8
doc: fix first .net script ( #6922 )
2021-06-05 14:33:36 -07:00
Dmitry Gozman
82041b2f74
test: roll to folio@0.4.0-alpha28 ( #6918 )
2021-06-04 20:54:58 -07:00
Pavel Feldman
f441755698
docs(dotnet): add test runner docs ( #6919 )
2021-06-04 20:52:35 -07:00
Dmitry Gozman
69b734629c
fix: various test-related fixes ( #6916 )
...
- Closing inspector window resumes the script.
- Replace FOLIO_WORKER_INDEX with TEST_WORKER_INDEX.
- Account for `@playwright/test` stack traces.
2021-06-04 18:43:54 -07:00
Dmitry Gozman
a83646684a
fix(tracing): error handling ( #6888 )
...
- Reject when ZipFile signals an error.
- Make sure snapshotter does not save trace events after stop().
- Await pending blob writes on stop().
2021-06-04 14:52:16 -07:00
Olivier Leplus
b5ac393284
docs(showcase): fixed typo in showcase.md ( #6915 )
2021-06-04 23:23:42 +02:00
Pavel Feldman
9ad507d9c0
doc(test): pass through test docs ( #6914 )
2021-06-04 13:33:56 -07:00
Pavel Feldman
ec2b6a7d8b
test: add a glob test ( #6911 )
2021-06-04 13:33:45 -07:00
Max Schmitt
ff3ad7a3d1
fix(android): to not call Browser.setDownloadBehavior ( #6913 )
2021-06-04 21:46:53 +02:00
Max Schmitt
9142d8c2dd
docs: fix that test-runner is not included ( #6912 )
2021-06-04 21:15:09 +02:00
Dmitry Gozman
233f1874da
feat(inspector): remove snapshots ( #6909 )
2021-06-04 10:47:19 -07:00
Yury Semikhatsky
a96491cbbb
feat(downloads): subscribe to download events in Browser domain instead of Page ( #6082 )
2021-06-04 09:54:29 -07:00
Joel Einbinder
e37c078ea6
test(nonStallingRawEvaluateInExistingMainContext): fix broken test ( #6908 )
2021-06-04 09:33:44 -07:00
Dmitry Gozman
21b00d0bcc
test: roll to folio@0.4.0-alpha27 ( #6897 )
2021-06-03 22:06:59 -07:00
Dmitry Gozman
85786b1a11
feat(trace viewer): fix UI issues ( #6890 )
2021-06-03 21:52:29 -07:00
Andrey Lushnikov
cfcf6a8899
feat: use WebKit stub on MacOS 10.14 ( #6892 )
...
This will yield the following error when installing new playwright
and launching WebbKit on MacOS 10.14
```
node:internal/process/promises:246
triggerUncaughtException(err, true /* fromPromise */);
^
browserType.launch: Protocol error (Playwright.enable): Browser closed.
==================== Browser output: ====================
<launching> /Users/aslushnikov/prog/playwright/browser_patches/deprecated-webkit-mac-10.14/pw_run.sh --inspector-pipe --headless --no-startup-window
<launched> pid=57578
[pid=57578][out] ERROR: this version of Playwright does not support running WebKit on MacOS 10.14. Please either update MacOS to 10.15+ or use Playwright@v1.11
[pid=57578] <process did exit: exitCode=1, signal=null>
[pid=57578] starting temporary directories cleanup
=========================== logs ===========================
<launching> /Users/aslushnikov/prog/playwright/browser_patches/deprecated-webkit-mac-10.14/pw_run.sh --inspector-pipe --headless --no-startup-window
<launched> pid=57578
[pid=57578][out] ERROR: this version of Playwright does not support running WebKit on MacOS 10.14. Please either update MacOS to 10.15+ or use Playwright@v1.11
[pid=57578] <process did exit: exitCode=1, signal=null>
[pid=57578] starting temporary directories cleanup
============================================================
```
References #6879
2021-06-03 19:45:17 -07:00
Yury Semikhatsky
657aa04bf2
browser(webkit): import <optional> to fix win compilation ( #6895 )
2021-06-03 17:35:24 -07:00
Yury Semikhatsky
abc66c6e70
docs(api): add missing callback parameter to waitForRequestFinished ( #6893 )
2021-06-03 17:17:35 -07:00
Yury Semikhatsky
2663c0bfd4
browser(webkit): import <optional> to fix mac compilation ( #6894 )
2021-06-03 17:17:09 -07:00
Yury Semikhatsky
cce62da3b2
browser(webkit): roll to 06/03 ( #6889 )
2021-06-03 16:21:39 -07:00
Yury Semikhatsky
fb0004c22c
feat(webkit): bump to 1492 ( #6887 )
2021-06-03 16:21:23 -07:00
Andrey Lushnikov
8a81b11d33
devops: replace WebKit for MacOS 10.14 build with a stub ( #6886 )
...
This patch will produce a stub build of WebKit for MacOS 10.14 with a
stub that errors out with a descriptive error.
References #6879
2021-06-03 15:36:31 -07:00
Andrey Lushnikov
401dcfdefd
chore: do not use a subshell hack when using XVFB ( #6884 )
...
This was originally introduced in 9caa61aed1
.
However, we no longer save process STDERR.
2021-06-03 15:28:57 -07:00
Andrey Lushnikov
f264e85a6c
chore: bump dependency to fix vulnerability ( #6882 )
2021-06-03 15:11:15 -07:00
Dmitry Gozman
d4482f3ad3
chore: do not use Array.from in injected script ( #6876 )
...
This method is most often overridden by some bad polyfill that
does not work correctly and breaks `$eval` and `$$eval` methods.
As a best-effort fix, use a `[...iterable]` throughout the code.
2021-06-03 15:10:02 -07:00
Andrey Lushnikov
f2cc439d8b
chore: move electron back from FYI bots to CQ1 bots ( #6883 )
...
This is according to the discussion at the meeting.
2021-06-03 15:03:10 -07:00
Andrey Lushnikov
b19b2dc3ad
devops: introduce manual @next NPM publishing ( #6881 )
2021-06-03 14:50:40 -07:00
Pavel Feldman
e41979a551
chore: import @playwright/test ( #6880 )
2021-06-03 14:46:58 -07:00
Dmitry Gozman
375ceca950
test: disable chromium headed tracing test ( #6878 )
2021-06-03 14:33:33 -07:00
Dmitry Gozman
0830c85dc6
test: roll to folio@0.4.0-alpha26 ( #6877 )
2021-06-03 13:40:00 -07:00
Yury Semikhatsky
d7c202ca3c
browser(webkit): fix time formatting and mac compilation ( #6875 )
2021-06-03 12:03:32 -07:00
Max Schmitt
064150f8dd
chore: use fs.promises API instead of promisify ( #6871 )
2021-06-03 18:55:33 +02:00
Pavel Feldman
d16afef75a
doc(tracing): add a trace viewer doc ( #6864 )
2021-06-03 08:08:05 -07:00
Dmitry Gozman
3de3a88930
feat(test): introduce npx playwright test
( #6816 )
2021-06-03 08:07:55 -07:00
Kumar Aditya
13b6444bda
docs(python): add docs for installing with conda ( #6845 )
...
Co-authored-by: Max Schmitt <max@schmitt.mx>
2021-06-03 11:37:43 +02:00
Dmitry Gozman
cc2c6917cf
test: roll to folio@0.4.0-alpha25 ( #6863 )
2021-06-02 22:35:18 -07:00
Pavel Feldman
b2143a951b
chore: make tracing zero config ( #6859 )
2021-06-02 22:00:34 -07:00
Dmitry Gozman
837ee08a53
fix(waitForSelector): retry when context is gone during node adoption ( #6851 )
...
There is a small window after finishing the "rerunnable task" where
we adopt the node to the main world and navigation could destroy the context.
2021-06-02 20:17:24 -07:00
Dmitry Gozman
8a68fa1e83
docs(test runner): advanced section ( #6862 )
2021-06-02 20:16:10 -07:00
Max Schmitt
c09726b023
test: add tests for port-forwarding via playwrightclient ( #6860 )q
2021-06-03 02:19:01 +02:00
Yury Semikhatsky
4fa792ee89
browser(webkit): getLocalStorageData command ( #6858 )
2021-06-02 16:30:00 -07:00
Pavel Feldman
c5e1c8b90c
docs: use explicit tab suffixes ( #6855 )
2021-06-02 15:31:51 -07:00
Max Schmitt
e91e49e533
feat(port-forwarding): add playwrightclient support ( #6786 )
2021-06-02 23:35:17 +02: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
Karan Shah
254ec155eb
feat(user-agent): Adding User-Agent in headers while making connection to browser ( #6813 )
2021-06-02 11:36:58 -07:00
Andrey Lushnikov
17b6f06b98
feat: install media pack on windows with npx playwright install-deps
( #6836 )
...
Chromium on Windows requires Media Pack to be installed. This patch
moves media pack installation under the `npx playwright install-deps`
umbrella.
2021-06-02 10:47:10 -07:00
Yury Semikhatsky
2fde9bc13f
fix(webkit): use new awaitPromise parameter instead of separate command ( #6852 )
2021-06-02 10:04:47 -07:00
Pavel Feldman
d28f45b6ee
api(tracing): export -> stop({path}) ( #6802 )
2021-06-02 10:04:25 -07:00