playwright/tests/playwright-test
Ross Wollman 0d42c16a17
fix(test-runner): undefined body crash with manual attachments (#11995)
The new (as of 1.18) `async testInfo.attach(…)` API handles this
gracefully (and is part of the reason for the new API's existence).
However, for the foreseeable future, it's still possible to manually
push onto the attachments array where we can't validate the contents
until it's too late, so this change ensures more graceful handling in
that case.

Fixes #11565
2022-02-10 12:33:38 -08:00
..
assets feat(test-runner): wait for a url before starting tests (#10138) 2022-01-26 16:32:58 -08:00
stable-test-runner chore: roll stable test runner to Feb 9, 2022 (#11971) 2022-02-09 09:34:25 -08:00
access-data.spec.ts feat(test-runner): introduce attachments (#7685) 2021-07-16 13:48:37 -07:00
basic.spec.ts fix(test-fail): allow unhandled expects in test.fail (#11850) 2022-02-03 17:14:12 -08:00
blink-diff.spec.ts fix(test runner): show codeframe and location from the error top stack frame (#11179) 2022-01-04 16:00:55 -08:00
command-line-filter.spec.ts chore: revert "fix(test-runner): escape backslashes in win cli (#11763)" (#12004) 2022-02-10 07:02:37 -08:00
config.spec.ts feat(test runner): replace declare/define with "options" (#10293) 2021-11-18 15:45:52 -08:00
exit-code.spec.ts chore: don't throw on no testDir (#11950) 2022-02-08 15:27:05 -08:00
expect-soft.spec.ts feat(test-runner): support expect.soft (#11800) 2022-02-02 18:33:51 -08:00
expect.spec.ts feat: support clarification message for expect (#11735) 2022-01-31 17:14:59 -08:00
fixture-errors.spec.ts feat: support clarification message for expect (#11735) 2022-01-31 17:14:59 -08:00
fixtures.spec.ts feat(test runner): replace declare/define with "options" (#10293) 2021-11-18 15:45:52 -08:00
gitignore.spec.ts chore: enable object-curly-spacing in ESLint (#9168) 2021-09-27 18:58:08 +02:00
global-setup.spec.ts chore: allow opt-into the legacy global setup mode (#11888) 2022-02-07 10:41:56 -08:00
golden.spec.ts feat(test-runner): support expect.soft (#11800) 2022-02-02 18:33:51 -08:00
hooks.spec.ts fix(test runner): skip beforeAll/afterAll when all tests are skipped (#11952) 2022-02-08 16:36:30 -08:00
list-mode.spec.ts chore: add npm run lint-tests (#10252) 2021-11-11 13:27:50 -08:00
loader.spec.ts feat: filter stack traces to exclude test runner frames (#11795) 2022-02-01 18:40:44 -08: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 feat(debug): allow preprocessing JS scripts as well (#11953) 2022-02-09 07:14:11 -08:00
playwright-test.config.ts test: default to one worker on CI for tests/playwright-test (#11618) 2022-01-25 10:11:44 -08:00
playwright.artifacts.spec.ts feat(test runner): save traces for beforeAll/afterAll hooks (#10950) 2021-12-15 16:06:10 -08:00
playwright.expect.misc.spec.ts feat: support clarification message for expect (#11735) 2022-01-31 17:14:59 -08:00
playwright.expect.text.spec.ts feat: support clarification message for expect (#11735) 2022-01-31 17:14:59 -08:00
playwright.expect.true.spec.ts feat: support clarification message for expect (#11735) 2022-01-31 17:14:59 -08:00
playwright.fetch.spec.ts test: add missing request tests (#9343) 2021-10-06 10:15:13 -07:00
playwright.spec.ts fix(test-runner): fix browser initialization in test modifiers (#11984) 2022-02-09 15:30:14 -08:00
playwright.trace.spec.ts feat(fixtures): respect tracing config for APIRequestContext (#11954) 2022-02-09 08:54:09 -08: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: support clarification message for expect (#11735) 2022-01-31 17:14:59 -08: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 fix(test-runner): respect source maps when reporting test files (#11770) 2022-02-01 13:04:54 -08:00
reporter-json.spec.ts feat: support clarification message for expect (#11735) 2022-01-31 17:14:59 -08:00
reporter-junit.spec.ts feat(html): unhide html reporter (#9512) 2021-10-14 11:17:35 -07:00
reporter-line.spec.ts feat: support clarification message for expect (#11735) 2022-01-31 17:14:59 -08:00
reporter-list.spec.ts feat: support clarification message for expect (#11735) 2022-01-31 17:14:59 -08:00
reporter-raw.spec.ts fix(test runner): fixture teardown double error, testInfo.attach() (#11365) 2022-01-13 10:38:47 -08:00
reporter.spec.ts fix(test-runner): respect source maps when reporting test files (#11770) 2022-02-01 13:04:54 -08:00
resolver.spec.ts fix(test runner): resolve tsconfig for each file (#11662) 2022-01-26 18:28:42 -08:00
retry.spec.ts feat: support clarification message for expect (#11735) 2022-01-31 17:14:59 -08:00
runner.spec.ts feat: support clarification message for expect (#11735) 2022-01-31 17:14:59 -08: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(test runner): hide beforeAll/afterAll hooks from the reporter api (#11306) 2022-01-10 12:09:51 -08:00
test-extend.spec.ts feat(test runner): make _extendTest experimental (#11210) 2022-01-05 15:54:00 -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 feat: support clarification message for expect (#11735) 2022-01-31 17:14:59 -08:00
test-output-dir.spec.ts fix: typos (#11789) 2022-02-01 11:09:41 -08:00
test-parallel.spec.ts feat(parallel): allow setting enclosing scope parallel mode (#11822) 2022-02-02 20:44:11 -08:00
test-serial.spec.ts feat(parallel): allow setting enclosing scope parallel mode (#11822) 2022-02-02 20:44:11 -08:00
test-step.spec.ts fix(stack): hide test runner stack frames (#9735) 2021-10-25 11:49:59 -07:00
test-use.spec.ts feat(test runner): replace declare/define with "options" (#10293) 2021-11-18 15:45:52 -08:00
timeout.spec.ts fix(test runner): test.setTimeout whould not break debugging (#11004) 2021-12-17 15:17:48 -08:00
types-2.spec.ts feat(test runner): make _extendTest experimental (#11210) 2022-01-05 15:54:00 -08:00
types.spec.ts Revert "feat(test-runner): allow parametrized tests that don't extend base (#9301)" 2021-10-11 17:32:31 +02:00
web-server.spec.ts fix(webServer): do not set baseURL equal to webServer.url (#11951) 2022-02-08 15:57:36 -08:00
worker-index.spec.ts feat(test runner): introduce TestInfo.parallelIndex (#9762) 2021-11-01 10:37:34 -07:00