Dmitry Gozman
37d1659508
feat(connect): support special headers for debug/attachments ( #22106 )
...
`x-playwright-debug-log: value` headers are printed to `pw:browser`
debug log.
`x-playwright-attachment: name=value` headers are attached to each test.
Fixes #21619 .
2023-03-31 08:57:07 -07:00
Debbie O'Brien
a567cf083f
docs: remove cli guide ( #21997 )
2023-03-31 10:48:05 +02:00
Sander
b9f7cca0aa
fix(ct): optional hooks config type ( #22100 )
2023-03-30 21:09:05 -07:00
Pavel Feldman
b1fdf0bcb6
chore: nest test steps based on zones ( #22108 )
...
Fixes : #21423
2023-03-30 21:05:07 -07:00
Pavel Feldman
eacaf5fc89
chore(ui): update expected state on test end ( #22104 )
...
Fixes https://github.com/microsoft/playwright/issues/22096
2023-03-30 16:17:34 -07:00
Dmitry Gozman
539d9873c2
feat: rename Locator.filter(locator) to Locator.and ( #22101 )
2023-03-30 14:41:30 -07:00
Yury Semikhatsky
ebcb37f61e
docs: add warning about browser policy ( #22103 )
...
Fixes https://github.com/microsoft/playwright/issues/22016
2023-03-30 13:09:57 -07:00
Sander
98051c7db2
fix(ct): solid type checking ( #22102 )
2023-03-30 12:31:39 -07:00
Dmitry Gozman
e6148bb725
feat: Locator.not(locator) ( #22066 )
2023-03-30 08:52:30 -07:00
Playwright Service
9aaf2b028e
feat(chromium-tip-of-tree): roll to r1100 ( #22095 )
...
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-03-30 16:13:03 +02:00
Playwright Service
da3f2c042e
feat(chromium): roll to r1057 ( #22093 )
...
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-03-30 15:36:15 +02:00
Debbie O'Brien
870abae9a1
docs: remove debug selectors ( #22027 )
2023-03-30 15:20:28 +02:00
Debbie O'Brien
2c9d65b5ed
docs: change port to url ( #22029 )
2023-03-30 15:18:59 +02:00
Playwright Service
896a03e776
feat(webkit): roll to r1820 ( #22083 )
2023-03-30 10:03:16 +02:00
Playwright Service
f96b24b2c5
feat(webkit): roll to r1819 ( #22081 )
...
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-03-30 09:31:37 +02:00
Pavel Feldman
968abd27d5
chore: do not use attributes for trace target annotation ( #22075 )
...
Fixes: https://github.com/microsoft/playwright/issues/22004
2023-03-29 23:17:17 -07:00
Pavel Feldman
a4f67c64e3
chore: allow ts decorators ( #22080 )
2023-03-29 20:43:08 -07:00
Pavel Feldman
d39ff3dc5a
chore: update typescript to 5.0.2 ( #22079 )
2023-03-29 17:13:09 -07:00
Dmitry Gozman
548e4a0c0f
fix(role): account for unslotted elements being hidden for aria ( #22070 )
...
When element is not assigned to any slot in the shadow root, it is not
rendered and is considered hidden for ARIA in all browsers.
In Chromium/Firefox we use `Element.checkVisibility` that already
handles this, but in WebKit we have to check it manually.
Fixes #21487 .
2023-03-29 17:08:05 -07:00
Max Schmitt
0c4eedbabe
docs: support code block titles ( #22068 )
...
Fixes https://github.com/microsoft/playwright/issues/21461
2023-03-29 23:15:39 +02:00
Yury Semikhatsky
026e49b076
chore: add snippet to the error message ( #21991 )
2023-03-29 14:07:14 -07:00
Sander
8d6f7ad521
fix(ct): viteConfig commonjsOptions doesn't work ( #22063 )
2023-03-29 14:00:38 -07:00
Sander
2428ff8b8b
chore: bump vite to 4.2.1 ( #22061 )
2023-03-29 14:00:00 -07:00
Sander
9c0c5d6e2a
chore(ct): throw error when props are not json serializable ( #22025 )
2023-03-29 13:59:27 -07:00
Pavel Feldman
8b7dc2cf7a
test: add a ui teardown test ( #22010 )
2023-03-29 13:57:19 -07:00
Dmitry Gozman
f7244a7e34
fix(tracing): allow disabling tracing through env ( #22050 )
...
We point `tracesDir` inside `test-results`, so it is removed between
test runs, while reused context is still writing there.
To fix the issue, we can now pass `env.PW_TEST_REUSE_CONTEXT`.
References #21993 .
2023-03-29 13:35:31 -07:00
Sander
81f3f987be
docs(readme): swap locator for getByText ( #22059 )
2023-03-29 20:13:55 +02:00
Dmitry Gozman
6929214dbf
feat(expect): expect(locator).toBeAttached() ( #22067 )
...
Fixes #13467 .
2023-03-29 11:09:17 -07:00
Andrey Lushnikov
0b170ddc12
test: enable some of the previously disabled tests ( #22047 )
...
Fixes https://github.com/microsoft/playwright/issues/21549
2023-03-29 10:52:55 -07:00
Andrey Lushnikov
bb6b4425f7
fix: per-user cache folders ( #22046 )
...
Fixes https://github.com/microsoft/playwright/issues/21859
2023-03-29 10:49:52 -07:00
Playwright Service
4f4a63096e
feat(firefox): roll to r1392 ( #22056 )
...
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-03-29 10:48:16 -07:00
Playwright Service
d8f5a3f2ce
feat(firefox-beta): roll to r1394 ( #22052 )
...
References https://github.com/microsoft/playwright/issues/21760
---------
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Andrey Lushnikov <aslushnikov@gmail.com>
2023-03-29 10:47:31 -07:00
Playwright Service
7f1de6568c
feat(webkit): roll to r1818, freeze webkit version on macos 11 ( #21996 )
2023-03-28 17:34:39 -07:00
Dmitry Gozman
6a2b4ed142
fix(role): use <title> for elements inside svg ( #22043 )
...
Follows svg-aam mapping:
https://www.w3.org/TR/svg-aam-1.0/#mapping_additional_nd
Fixes #21486 .
2023-03-28 15:52:16 -07:00
Playwright Service
1ba07bcd81
feat(chromium-tip-of-tree): roll to r1099 ( #22024 )
...
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-03-29 00:34:55 +02:00
Max Schmitt
ddd7765ef4
test: fix Chromium headed credential tests ( #22044 )
2023-03-29 00:34:26 +02:00
Dmitry Gozman
3b359e27b7
feat: BrowserContext.on('dialog') ( #22033 )
...
Dialogs created early during page initialization are only reported on
the context, with `page()` being `null`.
2023-03-28 13:15:55 -07:00
Dmitry Gozman
00d98770ee
docs: improve "Parent element locator" section ( #22040 )
...
Recommending `Locator.filter`, with a fallback to `xpath=..`
2023-03-28 13:15:25 -07:00
Nathan Power
02db6882ec
fix(ct): update regex to cater for minified JS files ( #22017 )
2023-03-28 11:15:11 -07:00
Sander
bfea952eef
fix(ct): vue revert json object as prop ( #22005 )
2023-03-27 17:44:40 -07:00
Dmitry Gozman
f502c72f2b
feat: browserContext.on('console') ( #21943 )
2023-03-27 16:35:05 -07:00
Dmitry Gozman
525097d465
feat: Locator.filter(locator) ( #21975 )
...
Produces a locator that matches both locators.
Implemented through `internal:and` selector.
Fixes #19551 .
2023-03-27 14:29:30 -07:00
Dmitry Gozman
47e5c02a21
fix(test runner): update default testMatch ( #22006 )
...
The intent of default test match is allowing `example.spec.ts` and
`example.test.ts` files. However, it was also matching `test.example.ts`
that should not be considered a test by default.
Fixes #21979 .
2023-03-27 14:28:44 -07:00
Max Schmitt
a64cdf87ee
test: skip 'should work with ip6 and port as the host' inside Docker ( #21981 )
2023-03-27 13:17:53 -07:00
Sébastien Richert
591e4ea976
feat: Restrain sending http credentials on a specific origin ( #20374 )
...
For security purpose, we would like to restrain sending HTTP credentials
to only the specified server. The idea is to give the ability to specify
a origin (scheme://host:port) additionally to current pair
username/password. When an authorization response is received from
servers, the credentials are sent only if the server origin in the
request matches case insensitive the specified origin.
2023-03-27 08:52:00 -07:00
Pavel Feldman
c3d7ffb773
chore(ui): do not print global setup epilogue ( #21976 )
2023-03-24 20:56:45 -07:00
Pavel Feldman
add948cdd0
chore: allow sibling describes with the same name ( #21967 )
...
Fixes https://github.com/microsoft/playwright/issues/21953
2023-03-24 17:09:11 -07:00
Pavel Feldman
79d55b959b
Revert "chore: remove legacy watch mode ( #21944 )" ( #21973 )
...
This reverts commit 86af908fa7
.
2023-03-24 16:41:20 -07:00
Sander
5d3128a595
test(ct): remove locators ( #21963 )
2023-03-24 15:55:32 -07:00
Tim Deschryver
45faf0cd80
docs: add --ui to CLI options ( #21966 )
2023-03-24 15:19:02 -07:00