From c6050dc86498455a1c71f375612391b18fca5e84 Mon Sep 17 00:00:00 2001 From: Adam Gastineau Date: Wed, 22 Jan 2025 05:44:33 -0800 Subject: [PATCH] Fixed syntax examples not passing linter --- docs/src/release-notes-js.md | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/docs/src/release-notes-js.md b/docs/src/release-notes-js.md index 22837fbf83..db96d20f42 100644 --- a/docs/src/release-notes-js.md +++ b/docs/src/release-notes-js.md @@ -12,21 +12,29 @@ import LiteYouTube from '@site/src/components/LiteYouTube'; * New option [`option: Test.step.timeout`] allows specifying a maximum run time for an individual test step. A timed-out step will fail the execution of the test. - ```ts + ```js test('some test', async ({ page }) => { - await test.step('a step', async () => {...}, { timeout: 1000 }); + await test.step('a step', async () => { + // This step can time out separately from the test + }, { timeout: 1000 }); }); ``` * New method [`method: Test.step.skip`] to disable execution of a test step. - ```ts + ```js test('some test', async ({ page }) => { - await test.step('before running step', async () => {...}); + await test.step('before running step', async () => { + // Normal step + }); - await test.step.skip('not yet ready', async () => {...}); + await test.step.skip('not yet ready', async () => { + // This step is skipped + }); - await test.step('after running step', async () => {...}); + await test.step('after running step', async () => { + // This step still runs even though the previous one was skipped + }); }); ```