playwright/packages/playwright-test
Dmitry Gozman ed99ac7395
fix(sigint): make sure we do not add handler twice (#24413)
In the following scenario, we were adding SIGINT handler twice, but
removing it just once:
- Task runner starts testing, creates SigIntWatcher, installs SIGINT
handler.
- Press Ctrl+C, task runner interrupts, disarms SigIntWatcher, SIGINT
handler is not removed due to 1000ms cooldown.
- Task runner starts cleanup, creates SigIntWatcher, installs another
SIGINT handler.
- Cleanup finishes, SigIntWatcher disarms, could remove or not remove
SIGINT handler based on timing (same 1000ms cooldown). In any case, we
have one or two SIGINT handlers still on.
- HTML reporter hangs in onExit, while we still have SIGINT handler up,
so Ctrl+C does not exit.

Regressed in #24265.
2023-07-25 18:35:38 -07:00
..
bundles chore(deps): bump semver and @babel/core in /packages/playwright-test/bundles/babel (#24082) 2023-07-10 23:40:28 +02:00
src fix(sigint): make sure we do not add handler twice (#24413) 2023-07-25 18:35:38 -07:00
types fix: exclude tracesDir option from launchOptions fixture (#24086) 2023-07-06 13:31:44 -07:00
.eslintrc.js chore: enable no-floating-promises on playwright-test (#23484) 2023-06-05 17:45:56 +02:00
.npmignore chore: babel, expect, zip bundles (#13588) 2022-04-18 11:31:58 -07:00
cli.js chore: fix playwright-core cli (#23203) 2023-05-22 12:37:08 -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
jsx-runtime.js chore: allow stub JSX instances in type module (#23211) 2023-05-22 15:34:50 -07:00
jsx-runtime.mjs chore: allow stub JSX instances in type module (#23211) 2023-05-22 15:34:50 -07:00
package.json chore: cut 1.36.0 (#24104) 2023-07-07 13:01:17 -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(deps): bump semver and @babel/core in /packages/playwright-test/bundles/babel (#24082) 2023-07-10 23:40:28 +02:00

@playwright/test

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