From e1bab0b021a949f977e70611ae483743d3534a35 Mon Sep 17 00:00:00 2001 From: Adam Gastineau Date: Wed, 22 Jan 2025 06:09:39 -0800 Subject: [PATCH] Fix snippet indentation --- docs/src/release-notes-js.md | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/docs/src/release-notes-js.md b/docs/src/release-notes-js.md index db96d20f42..d3760a7112 100644 --- a/docs/src/release-notes-js.md +++ b/docs/src/release-notes-js.md @@ -13,29 +13,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. ```js - test('some test', async ({ page }) => { - await test.step('a step', async () => { - // This step can time out separately from the test - }, { timeout: 1000 }); - }); + test('some test', async ({ page }) => { + 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. ```js - test('some test', async ({ page }) => { - await test.step('before running step', async () => { - // Normal step - }); - - await test.step.skip('not yet ready', async () => { - // This step is skipped - }); - - await test.step('after running step', async () => { - // This step still runs even though the previous one was skipped - }); + test('some test', async ({ page }) => { + await test.step('before running step', async () => { + // Normal step }); + + await test.step.skip('not yet ready', async () => { + // This step is skipped + }); + + await test.step('after running step', async () => { + // This step still runs even though the previous one was skipped + }); + }); ``` * Expanded [`method: LocatorAssertions.toMatchAriaSnapshot#2`] to allow storing of aria snapshots in separate YAML files.