Max Schmitt
a0938fc7a4
chore: set minimum Node.js requirement to 18 ( #30684 )
2024-05-08 17:41:27 +01:00
ggorlen
2d7b1480b2
docs(reporters): wrap reporter in array, fixing typo in docs ( #30686 )
2024-05-07 11:16:21 +00:00
jonghoonpark
a6488c4a28
fix(html-reporter): add filter for anonymous describe ( #30621 )
...
related issue: https://github.com/microsoft/playwright/issues/30475
## Motivation:
On https://github.com/microsoft/playwright/issues/30475 , we found that
anonymous describe is rendered in html report
## Modification:
Make filter for anonymous describe
## Result:
anonymous describe will be filtered out.
Not render empty describe
Close https://github.com/microsoft/playwright/issues/30475 issue
2024-05-02 09:54:44 -07:00
georg.dev
8173cdc485
fix(reporters): improve detection of output folder clashes ( #30607 )
...
When comparing `outputDir` and html-reporter `outputFolder`, we now make
sure that both paths end with a forward-slash.
Fixes #28677
---------
Co-authored-by: Georg Unterholzner <georg.unterholzner@dynatrace.com>
2024-05-02 08:32:57 -07:00
Yury Semikhatsky
3b7c4fac22
chore: add common env vars for junit and json reporters ( #30611 )
2024-05-01 10:16:49 -07:00
Yury Semikhatsky
ad0938c659
chore: mark 1.45.0-next ( #30598 )
2024-04-29 17:19:05 -07:00
Pavel Feldman
fb90797d73
fix(last-run): remove globalOutputDir ( #30571 )
2024-04-29 09:02:54 -07:00
Dmitry Gozman
ab3df111c9
chore: remove TeleTestCase._resultsMap ( #30567 )
2024-04-26 10:11:01 -07:00
Tan Li Hau
194479d90e
fix: pass key attribute from jsx to component test ( #30426 )
...
When using the `key` attribute in jsx inside the test modules, it is not
serialised and passed to the browser in component test
2024-04-26 09:49:44 -07:00
Yury Semikhatsky
3643fd456b
feat: outputFile option and PLAYWRIGHT_BLOB_OUTPUT_FILE env for blob ( #30559 )
...
Reference https://github.com/microsoft/playwright/issues/30091
2024-04-26 09:33:53 -07:00
Dmitry Gozman
6d20da568e
feat: expect(locator).toHaveRole(role) ( #30555 )
...
References #13517 . Fixes #18332 .
2024-04-25 15:26:10 -07:00
Yury Semikhatsky
9a1b34a4b0
Revert "fix: shut down workers before reporter.onEnd ( #30329 )" ( #30551 )
...
This reverts commit 3cea17abb6c8d7371a6d4dd913f714c427ea0fa0.
Reference https://github.com/microsoft/playwright/issues/30550
The test is preserved but marked as fixme.
2024-04-25 14:21:54 -07:00
Dmitry Gozman
086ea79c25
chore: remove checkCoverage script ( #30552 )
...
We do not benefit from it for many years already.
2024-04-25 14:00:14 -07:00
Dmitry Gozman
dc0665210f
fix(reporters): properly determine flaky status for serial mode ( #30529 )
...
There are plenty of edge cases in this area:
- interrupted test run;
- did not run because of serial mode failure;
- failed before `test.skip()` call (e.g. in `beforeEach`) in one of the
retries;
- and more...
Related issues: #28322 , #28321 , #27455 , #17652 .
Prior changes: #27762 , #26385 , #28360 , probably more.
There is still some duplication between `outcome()` and similar logic in
`base.ts`, which might be deduped in a follow-up.
Fixes #28322 .
2024-04-25 13:39:14 -07:00
Yury Semikhatsky
5502a16e1d
fix(junit): merged report should preserve total duration ( #30525 )
...
Fixes https://github.com/microsoft/playwright/issues/30518
2024-04-25 13:34:17 -07:00
Yury Semikhatsky
714235d6c8
fix(merge): include command hash into the report name ( #30528 )
...
Reference https://github.com/microsoft/playwright/issues/30091
2024-04-25 13:34:00 -07:00
Pavel Feldman
14413148f4
chore: document --last-failed ( #30544 )
...
drive-by: undocument --browser
2024-04-25 12:29:51 -07:00
Yury Semikhatsky
b074932a44
feat(blob): PLAYWRIGHT_BLOB_FILE_NAME env variable ( #30530 )
...
Reference https://github.com/microsoft/playwright/issues/30091
2024-04-25 09:45:38 -07:00
Pavel Feldman
a2eb43b335
feat(runner): allow running last failed tests ( #30533 )
...
Fixes: https://github.com/microsoft/playwright/issues/30506
2024-04-25 08:15:27 -07:00
Pavel Feldman
ff3d3ae8f2
fix(ui): print config and global setup errors ( #30531 )
...
Fixes: https://github.com/microsoft/playwright/issues/30513
2024-04-24 18:54:48 -07:00
Yury Semikhatsky
e2f7acea1e
docs: fix capitalization and alphabetic order in TestConfig ( #30523 )
2024-04-24 15:18:43 -07:00
Yury Semikhatsky
f1f3929a67
chore: get rid of ConfigInWorker, use FullConfig instead ( #30517 )
...
Addressing API review feedback.
2024-04-24 14:14:05 -07:00
Yury Semikhatsky
4e086e6df8
docs: update type
property description ( #30516 )
2024-04-24 13:10:17 -07:00
Pavel Feldman
7a9fd27146
chore: never watch node_modules ( #30514 )
2024-04-24 12:27:47 -07:00
Pavel Feldman
4514b7e3ed
chore: use original test ids in html report ( #30486 )
...
Fixes https://github.com/microsoft/playwright/issues/30430
2024-04-23 14:28:27 -07:00
Yury Semikhatsky
67c430435a
docs: more accurate test id description ( #30487 )
...
Reference https://github.com/microsoft/playwright/issues/30430
2024-04-23 14:07:37 -07:00
Pavel Feldman
f5ca5241f3
feat(esm): support import attributes ( #30482 )
...
Fixes https://github.com/microsoft/playwright/issues/30473
2024-04-23 10:13:01 -07:00
Dmitry Gozman
b0fbe058ae
feat: TestProject.ignoreSnapshots ( #30466 )
2024-04-22 16:16:38 -07:00
Yury Semikhatsky
1d786c804d
chore: generate globalTimeout and maxFailures errors in runner ( #30467 )
...
Generate 'global timeout' and 'max failures' errors in the runner. Avoid
reading `config.globalTimeout` and `config.maxFailures` in the base
reporters.
Reference https://github.com/microsoft/playwright/issues/29768
2024-04-22 14:00:16 -07:00
Yury Semikhatsky
1e52c37b25
chore: remove unused field ( #30465 )
2024-04-22 13:31:17 -07:00
Dmitry Gozman
4a275b8eca
feat: expect(locator).toHaveAccessibleDescription ( #30463 )
...
References #18332 .
2024-04-22 12:33:30 -07:00
Yury Semikhatsky
8c181f7e2b
fix: rebuild project tree from scratch when listing tests ( #30407 )
...
Instead of filtering tests assuming there are no two projects with same
name we always rebuild test tree from scratch and restore previos test
results in the list mode.
Fixes https://github.com/microsoft/playwright/issues/30396
2024-04-18 16:49:07 -07:00
Dmitry Gozman
eea1f9984f
feat: expect(locator).toHaveAccessibleName ( #30420 )
...
References #18332 .
2024-04-18 12:28:55 -07:00
Mateusz Burzyński
82aefd24db
types: allow readonly tuples to be used as ReporterDescription
( #30387 )
...
This makes it easier to create helper functions like:
```ts
function createReporter(options: MyOptions) {
return ['my-reporter', options] as const
}
```
At the moment, such functions can't be passed to `reporters` because a
readonly array is not assignable to the expected mutable array.
Playwirght certainly doesn't require those arrays to be mutable so it
would make sense to relax this.
2024-04-16 17:39:11 -07:00
Yury Semikhatsky
3bdbe4284e
fix(steps): make expect.toPass and expect.poll step containers ( #30389 )
...
Fixes https://github.com/microsoft/playwright/issues/30322
2024-04-16 16:18:37 -07:00
Yury Semikhatsky
73fce8fb98
chore: replace Zones with AsyncLocalStorage ( #30381 )
...
Reference https://github.com/microsoft/playwright/issues/30322
2024-04-16 12:51:20 -07:00
Yury Semikhatsky
3cea17abb6
fix: shut down workers before reporter.onEnd ( #30329 )
2024-04-16 09:49:11 -07:00
Yury Semikhatsky
1ef85015f3
fix(merge): preserve static annotations on the tests that did not run ( #30348 )
...
Fixes https://github.com/microsoft/playwright/issues/30260
2024-04-11 16:17:57 -07:00
Max Schmitt
15b423106f
fix(ui-mode): do not loose run information after writing into testDir ( #30312 )
...
Partially reverts https://github.com/microsoft/playwright/pull/30008
that started to reset all test results upon listing tests, including the
test that did just run and triggered re-listing.
https://github.com/microsoft/playwright/issues/30300 .
2024-04-10 19:01:51 +02:00
Max Schmitt
b2ded9fed1
fix(expect): throw better received error when no element was found ( #29890 )
...
Fixes https://github.com/microsoft/playwright/issues/29873
2024-04-10 10:01:19 +02:00
Dmitry Gozman
a6827772a5
fix(esmLoader): unref MessagePort in the main thread ( #30271 )
...
This prevents the process from not exiting forever due to an open port.
2024-04-06 14:25:57 -07:00
Yury Semikhatsky
3e03c800df
chore: resolve config location earlier ( #30275 )
...
Reference https://github.com/microsoft/playwright/issues/29768
2024-04-05 19:32:56 -07:00
Yury Semikhatsky
9e89f292bf
chore: remove usage of configFile from junit reporter ( #30273 )
...
Reference https://github.com/microsoft/playwright/issues/29768
2024-04-05 15:44:00 -07:00
Pavel Feldman
3cea258a9c
chore: expose clear cache to test server ( #30268 )
2024-04-05 09:31:34 -07:00
Pavel Feldman
5043bd55dc
chore: move dev server to config-based framework extensibility ( #30234 )
2024-04-05 08:39:51 -07:00
Dmitry Gozman
d5907f4b13
feat(junit): includeProjectInTestName option ( #30233 )
...
Fixes #30246 .
2024-04-04 11:04:51 -07:00
Pavel Feldman
8ee286b366
chore: migrate to the testserver.initialize ( #30226 )
2024-04-03 12:50:56 -07:00
Yury Semikhatsky
5c5f0d77e4
chore: move implementation of Config and Project to TestConfig and TestProject ( #30212 )
...
Reference https://github.com/microsoft/playwright/issues/29768
2024-04-03 10:47:32 -07:00
Max Schmitt
010bc29a3c
chore: harden markdown link validation ( #30221 )
2024-04-03 17:51:32 +02:00
Yury Semikhatsky
63f876a335
chore: remove overrides for type and status ( #30211 )
...
Reference https://github.com/microsoft/playwright/issues/29768
2024-04-02 17:42:13 -07:00