diff --git a/nodejs/docs/api/class-test.mdx b/nodejs/docs/api/class-test.mdx index 5a289da65ae..43e3f6f0c80 100644 --- a/nodejs/docs/api/class-test.mdx +++ b/nodejs/docs/api/class-test.mdx @@ -1240,7 +1240,7 @@ test('Safari-only test 2', async ({ page }) => { }); ``` -You can also call `test.skip()` without arguments inside the test body to always mark the test as failed. We recommend using `test.skip(title, body)` instead. +You can also call `test.skip()` without arguments inside the test body to always skip the test. However, we recommend using `test.skip(title, body)` instead. ```js import { test, expect } from '@playwright/test'; @@ -1273,10 +1273,10 @@ test('less readable', async ({ page }) => { Test body that takes one or two arguments: an object with fixtures and optional [TestInfo]. - `condition` [boolean] *(optional)*# - Test is marked as "should fail" when the condition is `true`. + Test is marked as "skipped" when the condition is `true`. - `callback` [function]\([Fixtures]\):[boolean] *(optional)*# - A function that returns whether to mark as "should fail", based on test fixtures. Test or tests are marked as "should fail" when the return value is `true`. + A function that returns whether to mark as "skipped", based on test fixtures. Test or tests are marked as "skipped" when the return value is `true`. - `description` [string] *(optional)*# Optional description that will be reflected in a test report.