Skip to content

[BUG] Missing await in test with test.fail() causes other tests to be skipped #26435

Description

@lukaw3d

System info

  • Playwright Version: 1.38.0-alpha-aug-11-2023
  • Operating System: Ubuntu 20
  • Browser: All
  • Other info:

Source code

  • I provided exact source code that allows reproducing the issue locally.

Link to the GitHub repository with the repro

https://github.com/lukaw3d/playwright-skip-tests-bug

Main parts:

Expected

$ playwright test --workers 1 --reporter list
  ✓  1 tests/test1.spec.ts:3:5 › test1 (145ms)
  ✘  2 tests/test2.spec.ts:3:5 › test2 (expect fail) (59ms)
  ✓  3 tests/test3.spec.ts:3:5 › test3 (60ms)
  ✓  4 tests/test4.spec.ts:3:5 › test4 (74ms)
  ✓  5 tests/test5.spec.ts:3:5 › test5 (65ms)

or
any kind of a warning or error that something went wrong

Actual

$ playwright test --workers 1 --reporter list
  ✓  1 tests/test1.spec.ts:3:5 › test1 (145ms)
  ✘  2 tests/test2.spec.ts:3:5 › test2 (expect fail) (59ms)
  -  3 tests/test3.spec.ts:3:5 › test3
  -  4 tests/test4.spec.ts:3:5 › test4
  -  5 tests/test5.spec.ts:3:5 › test5

and command exists as success!

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions