mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-14 21:53:35 +03:00
9cd704220c
Reland: worker.stop() before worker.run() was hanging because `_runFinished` promise was not initially resolved. --- This moves `beforeAll`, `afterAll` and some modifiers from running as a separate entity into running inside a test. Pros: - All errors are reported as test errors. - All artifacts are collected as test artifacts. - Reporters support this out of the box. Details: - Each test computes the necessary hooks to run and runs them. - Teardown is usually performed during the test (on test failure or worker stop). - `skipRemaining` is added to `DonePayload` to preserve the behavior where `beforeAll` hook failure skips subsequent tests. This behavior can now be improved to only target tests affected by this hook. |
||
---|---|---|
.. | ||
html-reporter | ||
playwright | ||
playwright-chromium | ||
playwright-core | ||
playwright-firefox | ||
playwright-test | ||
playwright-webkit | ||
.eslintrc.js |