playwright/packages/playwright-test
Dmitry Gozman 10ce7af411
fix(steps): step should not get an unrelated error (#22773)
Previously, we would use any error that was added during the step
execution as an error for this particular step.

This produces false positives, for example failing `page.click` call
that happened during `context` teardown was producing an error and
marking teardown is failed. However, in reality, the test itself has
failed, while teardown has not.

New approach uses test step hierarchy to inherit errors from child steps
to the parent step. This does not regress the original fix where
`expect.soft` errors are surfaced in the parent step.

See also #19973 that introduced the original logic.
2023-05-02 18:50:00 -07:00
..
bundles chore: only transpile tsx for components (#22504) 2023-04-19 14:20:53 -07:00
src fix(steps): step should not get an unrelated error (#22773) 2023-05-02 18:50:00 -07:00
types feat: project.teardown that runs after all dependents have finished (#22696) 2023-04-28 14:27:08 -07:00
.npmignore chore: babel, expect, zip bundles (#13588) 2022-04-18 11:31:58 -07:00
cli.js chore: remove cli from playwright-core (#22612) 2023-04-25 11:19:37 -07:00
index.d.ts feat: support experimental doc entries (#13446) 2022-04-13 16:13:30 -07:00
index.js chore: have pretty error if CT config has no defineConfig (#21318) 2023-03-02 00:47:05 +01:00
index.mjs chore: introduce defineConfig for easier JS typing (#20061) 2023-01-12 13:12:02 -08:00
package.json chore: cut 1.33.0 (#22600) 2023-04-24 12:48:02 -07:00
README.md chore: add README's for packages (#9432) 2021-10-11 19:28:10 +02:00
reporter.d.ts chore: move test runner types into the playwright test package (#9472) 2021-10-14 11:55:08 +02:00
reporter.js feat(test-runner): export reporter api as @playwright/test/reporter (#7692) 2021-07-16 21:15:03 -07:00
reporter.mjs feat(test-runner): export reporter api as @playwright/test/reporter (#7692) 2021-07-16 21:15:03 -07:00
ThirdPartyNotices.txt chore: allow ts decorators (#22080) 2023-03-29 20:43:08 -07:00

@playwright/test

This package contains Playwright Test. A test-runner for writing idiomatic and reliable end-to-end tests with Playwright.