playwright icon indicating copy to clipboard operation
playwright copied to clipboard

feat(trace-viewer): allow hiding browser panel

Open mturac opened this issue 5 months ago • 4 comments

Fixes https://github.com/microsoft/playwright/issues/41062

This adds a trace viewer toolbar toggle that hides the browser snapshot panel and moves the details drawer into the central area. The action list remains available, so users can inspect API/network-heavy traces with more space without losing navigation.

Tests:

  • npm run ctest -- tests/library/trace-viewer.spec.ts -g "should have network requests|should expand network details when browser panel is hidden"
  • npm run tsc -- --pretty false
  • npm run build

mturac avatar Jun 19 '26 10:06 mturac

Any change for a screenshot here?

dgozman avatar Jun 19 '26 15:06 dgozman

Sure, here's the browser panel hidden state:

Trace viewer with the browser panel hidden

mturac avatar Jun 19 '26 17:06 mturac

Test results for "MCP"

1 failed :x: [chromium] › mcp/cli-webstorage.spec.ts:20 › localstorage-list shows no items when empty @mcp-macos-latest-chromium

7353 passed, 1122 skipped


Merge workflow run.

github-actions[bot] avatar Jun 22 '26 21:06 github-actions[bot]

Test results for "tests 1"

2 flaky :warning: [chromium-library] › library/video.spec.ts:717 › screencast › should work with video+trace `@chromium-ubuntu-22.04-arm-node20`
:warning: [firefox-page] › page/page-emulate-media.spec.ts:144 › should keep reduced motion and color emulation after reload `@firefox-ubuntu-22.04-node20`

39624 passed, 744 skipped


Merge workflow run.

github-actions[bot] avatar Jun 22 '26 21:06 github-actions[bot]

This has bad UX (unexpected and varying location of the button when shown and hidden).

pavelfeldman avatar Jun 25 '26 17:06 pavelfeldman