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 + }); }); ```