Sadly, tests do not always pass. Luckily, Playwright Test supports test annotations to deal with failures, flakiness and tests that are not yet ready.
Annotations apply when the condition is truthy, or always when no condition is passed, and may include a description. Annotations may depend on test fixtures. There could be multiple annotations on the same test, possibly in different configurations.
skipmarks the test as irrelevant. Playwright Test does not run such a test. Use this annotation when the test is not applicable in some configuration.
failmarks the test as failing. Playwright Test will run this test and ensure it does indeed fail. If the test does not fail, Playwright Test will complain.
fixmemarks the test as failing. Playwright Test will not run this test, as opposite to the
fixmewhen running the test is slow or crashy.
slowmarks the test as slow and triples the test timeout.