Dmitry Gozman
f0d23b5d4d
fix(css selector): absolutize relative CSS selectors ( #9088 )
...
Selectors like `> div` are replaced by `:scope > div`,
which is useful for combining them with parent selectors.
This is a part of CSS Level 4 spec.
2021-09-22 14:13:00 -07:00
Yury Semikhatsky
79eb7744bc
feat(fetch): support options in playwright._newRequest ( #9061 )
2021-09-22 12:44:22 -07:00
Joel Einbinder
c673ef5330
chore(registry): refactor logic of what browsers to download to top level ( #9078 )
2021-09-22 11:43:13 -07:00
Joel Einbinder
92e2dbf6b4
chore(babel): rename .babelrc to babel.config.json ( #9076 )
2021-09-22 14:42:47 -04:00
Yury Semikhatsky
3c51f7d992
docs: improve ignorehttpserrors description ( #9081 )
2021-09-22 11:03:39 -07:00
Dmitry Gozman
e85a3a5a41
fix(page.content): throw a nice error when navigation intervenes ( #9080 )
2021-09-22 10:40:15 -07:00
Max Schmitt
449a593050
fix(fetch): be compatible with a 0 timeout ( #9071 )
2021-09-22 10:30:56 -07: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
5b93df0bab
chore(docker): upgrade to NPM 7 ( #8915 )
2021-09-22 16:38:50 +02:00
Dmitry Gozman
018467911b
test: introduce some common test fixtures ( #9060 )
2021-09-21 16:24:48 -07:00
Pavel Feldman
d4073e8214
docs: assorted doc fixes
2021-09-21 15:10:22 -07:00
Pavel Feldman
4af576d0c7
docs: extract codegen docs ( #9057 )
2021-09-21 13:46:11 -07:00
Pavel Feldman
d1a2803a57
docs: improve the auth state docs ( #9052 )
2021-09-21 13:20:50 -07:00
Max Schmitt
04858b3959
docs: release-notes adjust header indention
2021-09-21 22:16:43 +02:00
Max Schmitt
d354d14fb9
chore: move Frame.waitForTimeout to the server side ( #9053 )
2021-09-21 22:06:14 +02:00
Max Schmitt
854cf9c25c
docs: add 1.15 release-notes ( #9046 )
...
Co-authored-by: Pavel Feldman <pavel.feldman@gmail.com>
2021-09-21 22:04:53 +02:00
Max Schmitt
f9c5279c3a
fix(test-runner): toHaveURL respect baseURL ( #9050 )
2021-09-21 21:41:24 +02:00
Yury Semikhatsky
9b0e0c2273
fix: restore support for slowmo connect option ( #9038 )
2021-09-21 09:12:44 -07:00
Dmitry Gozman
7ec1035b98
test: improve child process utilities in tests ( #9036 )
2021-09-20 17:17:12 -07:00
Dmitry Gozman
5200134749
chore: improve http request utilities ( #9031 )
2021-09-20 13:50:26 -07:00
github-actions[bot]
e5b8c02c93
feat(chromium): roll to r922811 ( #9024 )
...
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2021-09-20 15:32:32 +02:00
github-actions[bot]
ac56958afe
browser(chromium): roll to r922811 ( #9020 )
...
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2021-09-20 12:06:00 +02:00
Max Schmitt
08544a88a1
chore(create-playwright): cut v0.1.7 release
2021-09-20 09:22:00 +02:00
github-actions[bot]
d61148c39a
feat(webkit): roll to r1548 ( #8996 )
...
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2021-09-18 07:50:42 +02:00
Dmitry Gozman
b575c0e2e6
fix(actions): do not throw evaluate protocol errors from actions ( #8997 )
...
When using `evaluate` or `evaluateHandle` internally during actions
like `click`, we can sometimes get protocol errors if page
navigates. In this case, we throw the protocol error right away.
Instead, we can treat such a protocol error similar to "detached"
error and retry in the new execution context.
2021-09-17 22:18:00 -07:00
Yury Semikhatsky
cc15227327
fix: do not dedup header values ( #8998 )
2021-09-17 17:19:13 -07:00
Dmitry Gozman
cb7285a8c0
docs(test): separate TestOptions from Fixtures ( #9000 )
2021-09-17 17:13:47 -07:00
Pavel Feldman
63ff405e6e
fix(inspector): stop on all snapshottable actions ( #8990 )
2021-09-17 15:24:15 -07:00
Nav-2d
e7a7a0cfc1
docs(test-configuration): Add actionTimeout to configuration ( #8994 )
2021-09-17 15:11:48 -07:00
Yury Semikhatsky
e359e95fcc
chore(fetch): fix typo ( #8991 )
2021-09-17 12:43:00 -07:00
Diego Pino
2408a5dfb9
browser(webkit): Follow-up #8980 ( #8993 )
...
Bring back snippet of code that was removed in #8802
2021-09-17 20:10:14 +02:00
Yury Semikhatsky
43a690c204
feat(fetch): set content-length header if post data is present ( #8979 )
2021-09-17 09:00:18 -07:00
github-actions[bot]
8dd0387641
feat(chromium): roll to r922354 ( #8987 )
...
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2021-09-17 16:14:41 +02:00
Joel Einbinder
cd88119313
browser(webkit): Page.overridePlatform ( #8443 )
...
Co-authored-by: Max Schmitt <max@schmitt.mx>
2021-09-17 13:52:22 +02:00
Max Schmitt
b5f6952f23
docs(core-concepts): mention newPage in browser context section ( #8984 )
2021-09-17 13:33:55 +02:00
github-actions[bot]
d13b7703a7
browser(chromium): roll to r922354 ( #8985 )
...
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2021-09-17 12:07:01 +02:00
Max Schmitt
6eee71a09b
docs: add GHA config for the deployment API ( #8983 )
2021-09-17 11:22:14 +02:00
Timm Krause
4cdc6f20c3
docs: fix "brower" typo in multi-pages doc
2021-09-17 10:36:51 +02:00
Yury Semikhatsky
d3c71cc207
docs: clarify waitForURL(string) behavior ( #8952 )
2021-09-17 10:34:49 +02:00
Diego Pino
44b4c2f792
browser(webkit): Reenable OS_DARK_MODE_SUPPORT ( #8980 )
2021-09-17 10:15:14 +02:00
Yury Semikhatsky
806a71a4f0
feat(fetch): support form data and json encodings ( #8975 )
2021-09-16 17:48:43 -07:00
Dmitry Gozman
43213614a1
fix(test runner): after hooks step should not be nested ( #8969 )
2021-09-16 15:51:27 -07:00
Pavel Feldman
bca283837c
browser(webkit): compute raw header size in soup ( #8977 )
2021-09-16 14:17:50 -07:00
Joel Einbinder
eafba43e15
fix(snapshot): render adoptedStyleSheets used in more than one node ( #8886 )
...
.
2021-09-16 09:37:38 -04:00
Max Schmitt
abc989eb3e
chore: use Node.js 14 (LTS) for driver ( #8965 )
2021-09-16 15:14:11 +02:00
Max Schmitt
5689d9bc24
chore: cut v1.15.0 release ( #8964 )
2021-09-16 14:59:55 +02:00
Andrey Lushnikov
1b49eec96c
devops: enable manual publishing of canary docker ( #8959 )
2021-09-16 02:02:19 -07:00
Andrey Lushnikov
4f762ba90a
feat: introduce experimental general-purpose grid ( #8941 )
...
This patch adds a general-purpose grid framework to parallelize
Playwright across multiple agents.
This patch adds two CLI commands to manage grid:
- `npx playwright experimental-grid-server` - to launch grid
- `npx playwrigth experimental-grid-agent` - to launch agent in a host
environment.
Grid server accepts an `--agent-factory` argument. A simple
`factory.js` might look like this:
```js
const child_process = require('child_process');
module.exports = {
name: 'My Simple Factory',
capacity: Infinity, // How many workers launch per agent
timeout: 10_000, // 10 seconds timeout to create agent
launch: ({agentId, gridURL, playwrightVersion}) => child_process.spawn(`npx`, [
'playwright'
'experimental-grid-agent',
'--grid-url', gridURL,
'--agent-id', agentId,
], {
cwd: __dirname,
shell: true,
stdio: 'inherit',
}),
};
```
With this `factory.js`, grid server could be launched like this:
```bash
npx playwright experimental-grid-server --factory=./factory.js
```
Once launched, it could be used with Playwright Test using env variable:
```bash
PW_GRID=http://localhost:3000 npx playwright test
```
2021-09-16 01:20:36 -07:00
Dmitry Gozman
5379b2dcba
fix(test runner): account for errors with inconsistent stack/message ( #8950 )
2021-09-15 21:28:36 -07:00
Dmitry Gozman
9b08871b4d
fix(test runner): print flaky tests summary in yellow, not in red ( #8951 )
2021-09-15 16:28:57 -07:00