Skip to content

fix(trace-viewer): keep action marker aligned while scrolling - #44154

Merged
Devin Rousso (dcrousso) merged 1 commit into
mainfrom
triage/44127/43960219698-1
Nov 18, 2026
Merged

Devin Rousso (dcrousso) merged 1 commit into
mainfrom
triage/44127/43960219698-1

Conversation

@microsoft-playwright-automation

Copy link
Copy Markdown
Contributor

The red action marker was positioned only when the DOM snapshot loaded, so it stayed at the old viewport coordinates after scrolling. Recompute its position on document and shadow-root scroll events, including scrollable descendants.

The extended target-highlight test checks alignment before scrolling, after scrolling down, and after returning to the original position. It fails without the fix and passes with Chromium, Firefox and WebKit recordings.

Fixes #44127

Triaged on macOS by the Playwright bot - agent run

@github-actions

Copy link
Copy Markdown
Contributor

Test results for "MCP"

3 failed
❌ [chrome] › mcp/crash.spec.ts:31 › crash recovery › reports the navigation error, then resets and logs the crash @mcp-ubuntu-latest-chrome
❌ [chrome] › mcp/crash.spec.ts:58 › crash recovery › lists only one tab @mcp-ubuntu-latest-chrome
❌ [chrome] › mcp/crash.spec.ts:79 › crash recovery › marks non-current crashed tab in the tab list @mcp-ubuntu-latest-chrome

5232 passed, 631 skipped


Merge workflow run.

@microsoft-playwright-automation

Copy link
Copy Markdown
Contributor Author

🟢 All three failures also occur on main

Hi, I'm the Playwright bot. I checked the MCP failures; none is caused by this PR.

Details

Covers MCP run 43962466614 at 227ea525846f65ca753cd58c94d3cf5bd25c7da7.

The PR changes snapshot-marker positioning and its trace-viewer test, not MCP crash recovery. All three failing tests have identical errors in the earlier main job, at the PR's base commit 826ce42b8664ea940424e77ce51f1cdf96dcd37f.

Pre-existing flake / infra

One group: [chrome] crash recovery on ubuntu-latest:

  • mcp/crash.spec.ts:31 — reports the navigation error, then resets and logs the crash: 30-second timeout in the recovery check at line 48, on both commits.
  • mcp/crash.spec.ts:58 — lists only one tab: 30-second timeout and Error: Not connected at line 71, on both commits.
  • mcp/crash.spec.ts:79 — marks non-current crashed tab in the tab list: 30-second timeout and Error: Not connected at line 93, on both commits.

These are confirmed pre-existing failures; the comparison does not establish whether they are intermittent or identify their underlying cause.

Checked the failures on Linux by the Playwright bot - agent run

@github-actions

Copy link
Copy Markdown
Contributor

Test results for "tests 1"

2 failed
❌ [playwright-test] › reporter-junit.spec.ts:350 › created › should add file attribute relative to fileRoot @playwright-x64-server2025-64-core-node22
❌ [playwright-test] › reporter-junit.spec.ts:350 › merged › should add file attribute relative to fileRoot @playwright-x64-server2025-64-core-node22

2 flaky ⚠️ [installation tests] › connect-to-selenium.spec.ts:20 › connect to selenium `@package-installations-ubuntu-latest`
⚠️ [chromium-library] › library/video.spec.ts:762 › screencast › VI-030 should work with video+trace `@chromium-playwright-x64-ubuntu24-64-core-node22`

23642 passed, 716 skipped


Merge workflow run.

@microsoft-playwright-automation

Copy link
Copy Markdown
Contributor Author

🟢 Both failures also occur on main

Hi, I'm the Playwright bot. I checked the tests 1 failures; neither is caused by this PR.

Details

Covers run 43962466436 at 227ea525846f65ca753cd58c94d3cf5bd25c7da7. The PR changes snapshot-marker positioning and its trace-viewer test, not JUnit reporting.

Pre-existing flake / infra

One group: [playwright-test] › reporter-junit.spec.ts:350 › should add file attribute relative to fileRoot, both created and merged, on Windows. Both fail at line 374: classname is auth\a.test.js, but the test expects auth/a.test.js.

The same two tests fail with identical errors in the earlier main job, at the PR's base commit 826ce42b8664ea940424e77ce51f1cdf96dcd37f. These are confirmed pre-existing failures, not evidence of an intermittent flake.

The test assumes POSIX separators for classname, which uses the native file-suite title. A small test fix is to expect path.join('auth', 'a.test.js') there; keep the file attribute expectations as POSIX paths.

Checked the failures on Linux by the Playwright bot - agent run

@dcrousso
Devin Rousso (dcrousso) marked this pull request as ready for review November 17, 2026 16:57
@dcrousso
Devin Rousso (dcrousso) merged commit 6244a88 into main Nov 18, 2026
29 of 31 checks passed
@dcrousso
Devin Rousso (dcrousso) deleted the triage/44127/43960219698-1 branch November 18, 2026 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: [Trace View] During analysing the timeline action over screen shots, action performed highlight icon not auto adjusted upon scroll up and down

2 participants