Skip to content

feat(trace-viewer): show clock timestamps during playback - #44391

Draft
microsoft-playwright-automation[bot] wants to merge 2 commits into
mainfrom
triage/44374/45655905296-1
Draft

microsoft-playwright-automation[bot] wants to merge 2 commits into
mainfrom
triage/44374/45655905296-1

Conversation

@microsoft-playwright-automation

Copy link
Copy Markdown
Contributor

Add optional clock timestamps to timeline playback and DOM/Aria snapshots, with local/UTC selection also applied to the metadata start time and shared with UI mode.

Use the normalized trace clock for playback and recorded wall time for DOM snapshots. Keep both overlays off by default and preserve the relative timeline labels.

Verified on Linux: Trace Viewer, related snapshot and UI-mode tests passed; build and flint passed.

Fixes #44374

Triaged on Linux by the Playwright bot - agent run

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@dgozman Dmitry Gozman (dgozman) left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR needs screenshots taken before/after that showcase the UI additions.

@microsoft-playwright-automation

This comment has been minimized.

@microsoft-playwright-automation

Copy link
Copy Markdown
Contributor Author

Captured before/after screenshots for the settings, DOM snapshots, Aria snapshots, playback, and metadata. Download the run artifacts and open screenshots/index.html for the comparisons. Extra images show Local time and the unchanged defaults.

The images use the same trace and viewport on both builds. GitHub image attachments are unavailable in this read-only run, so the screenshots are in the artifacts rather than embedded here.

No source changes were needed. Rebased on current main; build, flint, and 412 related tests passed across Chromium, Firefox, and WebKit. The timestamp regression test fails without the change and passes with it.

@microsoft-playwright-automation microsoft-playwright-automation Bot added agent-review-done The Playwright bot run ended and removed agent-review labels Nov 26, 2026
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@dgozman

Copy link
Copy Markdown
Collaborator

Great! Let's update the UI in this way:

  • metadata timestamp shows local time as today, hovering over it shows the tooltip UTC <timestamp>
  • do not show timestamp in the snapshot area, or on top of the scrubber
  • show timestamp on the toolbar, to the left of media scrubber controls, make it look nicely, show the value relative to the trace start instead of the absolute value, upon hover show the tooltip with <local timestamp> (UTC <timestamp>)

@dgozman Dmitry Gozman (dgozman) added agent-review and removed agent-review-done The Playwright bot run ended labels Nov 26, 2026
@microsoft-playwright-automation

This comment has been minimized.

@microsoft-playwright-automation

Copy link
Copy Markdown
Contributor Author

Hi, I'm the Playwright bot and I updated the UI as requested.

  • Metadata keeps local time; its tooltip shows UTC <timestamp>.
  • Removed timestamps from snapshots and the scrubber, along with their settings.
  • The toolbar now shows elapsed time from the trace start, immediately before the playback buttons. Its tooltip shows <local timestamp> (UTC <timestamp>).

Build and flint passed, along with 441 related tests; 5 were skipped. Both timestamp tests fail without the change. Updated before/after screenshots are in the run artifacts, under screenshots/index.html.

Revised on Linux by the Playwright bot - agent run

@microsoft-playwright-automation microsoft-playwright-automation Bot added agent-review-done The Playwright bot run ended and removed agent-review labels Nov 26, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Test results for "MCP"

5278 passed, 644 skipped


Merge workflow run.

@github-actions

Copy link
Copy Markdown
Contributor

Test results for "tests 1"

1 flaky ⚠️ [firefox-page] › page/page-event-pageerror.spec.ts:289 › ER-022 should not fire for a caught fetch rejected by a pending navigation `@firefox-playwright-x64-ubuntu24-64-core-node22`

23705 passed, 711 skipped


Merge workflow run.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-review-done The Playwright bot run ended

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Display continuous timestamps (UTC or local) in Trace Viewer

1 participant