From 6e2bc890a6cbc999b0ec1cb3215f030070f9a682 Mon Sep 17 00:00:00 2001 From: Dmitry Gozman Date: Wed, 17 Nov 2021 11:03:30 -0800 Subject: [PATCH] docs: add links from annotations to respective methods (#10379) --- docs/src/test-annotations-js.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/src/test-annotations-js.md b/docs/src/test-annotations-js.md index 045eeb9cb0..fc59273ab0 100644 --- a/docs/src/test-annotations-js.md +++ b/docs/src/test-annotations-js.md @@ -8,10 +8,10 @@ title: "Annotations" ## Annotations Playwright Test supports test annotations to deal with failures, flakiness, skip, focus and tag tests: -- `skip` marks the test as irrelevant. Playwright Test does not run such a test. Use this annotation when the test is not applicable in some configuration. -- `fail` marks 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. -- `fixme` marks the test as failing. Playwright Test will not run this test, as opposite to the `fail` annotation. Use `fixme` when running the test is slow or crashy. -- `slow` marks the test as slow and triples the test timeout. +- [`method: Test.skip#1`] marks the test as irrelevant. Playwright Test does not run such a test. Use this annotation when the test is not applicable in some configuration. +- [`method: Test.fail`] marks 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. +- [`method: Test.fixme`] marks the test as failing. Playwright Test will not run this test, as opposite to the `fail` annotation. Use `fixme` when running the test is slow or crashy. +- [`method: Test.slow`] marks the test as slow and triples the test timeout. Annotations can be used on a single test or a group of tests. Annotations can be conditional, in which case they apply when the condition is truthy. Annotations may depend on test fixtures. There could be multiple annotations on the same test, possibly in different configurations.