From e06a37375fa8e91277466692efa4c1ca994a836d Mon Sep 17 00:00:00 2001 From: Hiroshi Ogawa Date: Mon, 5 Oct 2026 17:02:10 +0900 Subject: [PATCH] docs: update `page.mark()` nesting behavior (#11484) Co-authored-by: Hiroshi Ogawa <4232207+hi-ogawa@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 --- docs/guide/browser/trace-view.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guide/browser/trace-view.md b/docs/guide/browser/trace-view.md index 1d7005765..59c1f97f9 100644 --- a/docs/guide/browser/trace-view.md +++ b/docs/guide/browser/trace-view.md @@ -119,7 +119,7 @@ await page.mark('content rendered') await page.getByRole('button', { name: 'Sign in' }).mark('sign in button') ``` -You can also pass a callback to `page.mark()`. Note that grouping is not currently supported — each inner action is recorded individually, and the mark entry appears at the end: +You can also pass a callback to `page.mark()` to group steps. The mark entry spans the callback, and the actions inside it are nested under the mark in the step list: ```ts await page.mark('sign in flow', async () => { -- 2.51.2