playwright/tests/playwright-test
Dmitry Gozman 79163e802a
fix(test runner): screenshot immediately after failure (#15159)
Previously, screenshot was taken after hooks and fixtures teardown.
However, hooks can easily modify the state of the page, and
screenshot would not reflect the moment of failure.

Instead, we take screenshots immediately after the test function
finishes with an error.
2022-06-27 17:46:39 -07:00
..
assets feat(server): consider 3XX, 400-403 responses as started server 2022-06-10 14:47:29 -07:00
stable-test-runner chore: roll stable test-runner to 1.23.0-alpha-1655778679000 (#15015) 2022-06-21 18:53:38 +02:00
access-data.spec.ts feat(test-runner): introduce attachments (#7685) 2021-07-16 13:48:37 -07:00
babel.spec.ts feat(ct): support cra w/ .js (#14326) 2022-05-24 19:43:28 -07:00
basic.spec.ts feat(test runner): descrbe.skip (#12865) 2022-03-18 16:07:11 -07:00
command-line-filter.spec.ts feat(test-runner): support filtering by columns (#13401) 2022-04-07 22:45:45 +02:00
config.spec.ts fix(reporters): normalize usage of isTTY, env.CI and debug env variables (#12295) 2022-02-24 12:39:28 -08:00
esm.spec.ts fix(esm): respect source maps in esm-transpiled code (#14561) 2022-06-01 16:50:23 -07:00
exit-code.spec.ts chore: don't throw on no testDir (#11950) 2022-02-08 15:27:05 -08:00
expect-poll.spec.ts feat(poll): expose custom poll interval (#13776) 2022-04-26 21:32:38 -07:00
expect-soft.spec.ts chore(test-runner): rewrite poll, soft, wrap (#13335) 2022-04-05 17:47:35 -07:00
expect.spec.ts feat(expect): ensure it works in global setup (#13896) 2022-05-03 21:53:15 +01:00
fixture-errors.spec.ts chore: small test runner changes in preparation of global fixtures (#13899) 2022-05-03 15:19:27 +01:00
fixtures.spec.ts fix(test runner): do not run automatic fixtures for beforeAll hooks (#14104) 2022-05-13 11:17:20 +01:00
gitignore.spec.ts fix(runner): ignore .gitignore if testDir is explicitly configured (#14430) 2022-05-26 14:39:51 -07:00
global-setup.spec.ts chore: fixtures-via-plugin implementation (#13950) 2022-05-05 10:14:00 -07:00
golden.spec.ts test: fix windows paths in golden.spec (#13258) 2022-04-01 13:12:29 -07:00
hooks.spec.ts Revert "feat(line reporter): show stats, handle tty" (#12735) 2022-03-14 10:37:43 -07:00
list-mode.spec.ts fix(list mode): print errors to stderr (#13016) 2022-03-24 07:33:33 -07:00
loader.spec.ts chore: remove esm error interception, it only confuses users (#14829) 2022-06-13 12:32:42 -07:00
match-grep.spec.ts test(test-runner): add tests to show that grep is case insensitive (#8091) 2021-08-09 14:05:51 -04:00
max-failures.spec.ts feat: support clarification message for expect (#11735) 2022-01-31 17:14:59 -08:00
override-timeout.spec.ts test(test-runner): unflake override-timeout.spec.ts (#7869) 2021-07-29 13:34:46 -07:00
playwright-test-fixtures.ts chore: warn users on clashing test output and html reporter folders (#14964) 2022-06-18 15:47:26 -07:00
playwright.artifacts.spec.ts fix(test runner): screenshot immediately after failure (#15159) 2022-06-27 17:46:39 -07:00
playwright.config.ts test: stress runners (#15078) 2022-06-23 15:55:12 -07:00
playwright.connect.spec.ts chore: hide plugins for now (#13908) 2022-05-03 14:25:56 -07:00
playwright.ct-build.spec.ts chore: update to react18, but use react17 mode (#14645) 2022-06-06 17:14:01 -07:00
playwright.ct-react.spec.ts fix(ct): respect boolean shorthands (#14798) 2022-06-10 17:34:21 -07:00
playwright.ct-reuse.spec.ts chore: simplify context/page reuse in ct (#14565) 2022-06-02 12:16:07 -07:00
playwright.expect.misc.spec.ts fix(toHaveProperty): serialize falsy arguments as well (#14232) 2022-05-17 14:44:12 -07:00
playwright.expect.text.spec.ts chore: move multi-select assertion to toHaveValues (#14595) 2022-06-02 16:01:34 -04:00
playwright.expect.true.spec.ts docs: clarify toBeDisabled behavior (#13616) 2022-04-18 17:06:01 -07:00
playwright.fetch.spec.ts test: add missing request tests (#9343) 2021-10-06 10:15:13 -07:00
playwright.spec.ts feat(har): re-add routeFromHAR (#15024) 2022-06-21 22:12:37 -07:00
playwright.trace.spec.ts chore(har): allow replaying from zip har (#14962) 2022-06-17 16:11:22 -07:00
playwright.unhandled.spec.ts fix: do not mute route handler exceptions (#11555) 2022-01-22 22:19:32 +01:00
repeat-each.spec.ts chore: enable object-curly-spacing in ESLint (#9168) 2021-09-27 18:58:08 +02:00
reporter-attachment.spec.ts feat(test-runner): introduce GlobalInfo (#13083) 2022-04-08 13:22:14 -07:00
reporter-base.spec.ts fix(test-runner): undefined body crash with manual attachments (#11995) 2022-02-10 12:33:38 -08:00
reporter-dot.spec.ts feat: support clarification message for expect (#11735) 2022-01-31 17:14:59 -08:00
reporter-github.spec.ts feat(test-runner): support expect.soft (#11800) 2022-02-02 18:33:51 -08:00
reporter-html.spec.ts chore: warn users on clashing test output and html reporter folders (#14964) 2022-06-18 15:47:26 -07:00
reporter-json.spec.ts Revert "feat(line reporter): show stats, handle tty" (#12735) 2022-03-14 10:37:43 -07:00
reporter-junit.spec.ts feat(junit reporter): link testcases to Xray test issues and provide additional metadata for Xray Test Management (#11374) 2022-06-10 10:31:48 +02:00
reporter-line.spec.ts fix(reporter): line reporter should not swallow half-line stdout (#15114) 2022-06-27 11:25:42 -07:00
reporter-list.spec.ts fix(reporters): truncate long test titles from the start (#15052) 2022-06-22 17:03:54 -07:00
reporter-raw.spec.ts chore: remove defunct GlobalInfo.attach test (#13895) 2022-05-03 14:18:16 +01:00
reporter.spec.ts feat(hooks): add a step per hook (#12867) 2022-03-17 19:33:01 -07:00
resolver.spec.ts fix: resolve ts compilerOptions.paths with prefixes and suffixes (#13105) 2022-04-06 14:14:03 -07:00
retry.spec.ts feat: support clarification message for expect (#11735) 2022-01-31 17:14:59 -08:00
runner.spec.ts chore: respect sigint in global setup (#14805) 2022-06-12 13:06:00 -07:00
shard.spec.ts fix(test runner): disallow use(workerFixture) in describes (#8119) 2021-08-10 16:32:32 -07:00
stdio.spec.ts fix(reporters): normalize usage of isTTY, env.CI and debug env variables (#12295) 2022-02-24 12:39:28 -08:00
test-extend.spec.ts fix(test runner): ignore undefined values in fixtures definitions (#15119) 2022-06-27 11:31:41 -07:00
test-grep.spec.ts feat(test-runner): allow grepping in project (#12469) 2022-03-02 15:02:35 -08:00
test-ignore.spec.ts chore: revert "fix(test-runner): escape backslashes in win cli (#11763)" (#12004) 2022-02-10 07:02:37 -08:00
test-info.spec.ts feat: support clarification message for expect (#11735) 2022-01-31 17:14:59 -08:00
test-modifiers.spec.ts reland(test runner): run hooks/modifiers as a part of the test (#12518) 2022-03-08 16:35:14 -08:00
test-output-dir.spec.ts feat: use package.json directory as a default for outputDir (#12942) 2022-03-23 16:05:49 -07:00
test-parallel.spec.ts fix(parallel): minimize the number of beforeAll/afterAll hooks in parallel mode (#13138) 2022-03-28 16:10:32 -07:00
test-serial.spec.ts feat(test runner): allow serial suites inside parallel (#14530) 2022-05-31 15:24:20 -07:00
test-step.spec.ts chore(test-runner): rewrite poll, soft, wrap (#13335) 2022-04-05 17:47:35 -07:00
test-use.spec.ts fix(test runner): improve error message for unexpected calls (#12240) 2022-02-18 18:25:18 -08:00
timeout.spec.ts fix(test runner): ensure that hooks run before fixtures teardown after timeout (#14035) 2022-05-09 20:38:20 +01:00
to-have-screenshot.spec.ts fix(test runner): toHaveScreenshot should not overwrite matching expectations (#15028) 2022-06-21 18:01:25 -07:00
types-2.spec.ts feat(test runner): descrbe.skip (#12865) 2022-03-18 16:07:11 -07:00
types.spec.ts feat(fixtures): per-fixture timeout (#12751) 2022-03-17 09:36:03 -07:00
web-server.spec.ts feat(server): consider 3XX, 400-403 responses as started server 2022-06-10 14:47:29 -07:00
worker-index.spec.ts feat(test runner): introduce TestInfo.parallelIndex (#9762) 2021-11-01 10:37:34 -07:00