mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00

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.
@playwright/test
This package contains Playwright Test. A test-runner for writing idiomatic and reliable end-to-end tests with Playwright.