Skip to content

fix(html-reporter): align screenshot slider size labels#40101

Open
alexchexes wants to merge 2 commits intomicrosoft:mainfrom
alexchexes:fix/slider-labels-order
Open

fix(html-reporter): align screenshot slider size labels#40101
alexchexes wants to merge 2 commits intomicrosoft:mainfrom
alexchexes:fix/slider-labels-order

Conversation

@alexchexes
Copy link
Copy Markdown

This fixes the order of the Expected/Actual size labels that appear above the Slider view in the Image mismatch section of a failed test report, when the Expected and Actual image sizes don't match.

The problem with the existing label order was that the slider shows the expected image on the right and the actual image on the left (which is already counterintuitive, but that's a separate topic), while the labels were reversed: the Expected W x H appeared on the left and the Actual W x H appeared on the right. Together, this made the Slider UI pretty confusing.

This PR only changes the label order; it doesn't change the slider behavior.

Before:

old

After:

new

@alexchexes
Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree

Copy link
Copy Markdown
Member

@pavelfeldman pavelfeldman left a comment

Choose a reason for hiding this comment

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

Please remove the test and stray changes, your cosmetic change does not warrant a test.

@alexchexes
Copy link
Copy Markdown
Author

@pavelfeldman Done

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 8, 2026

Test results for "MCP"

6442 passed, 383 skipped


Merge workflow run.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 8, 2026

Test results for "tests 1"

1 failed
❌ [playwright-test] › ui-mode-test-network-tab.spec.ts:459 › should not preserve selection across test runs @macos-latest-node20

7 flaky ⚠️ [chromium-library] › library/video.spec.ts:118 › screencast › should capture static page `@chromium-ubuntu-22.04-arm-node20`
⚠️ [chromium-library] › library/video.spec.ts:342 › screencast › should work for popups `@chromium-ubuntu-22.04-arm-node20`
⚠️ [chromium-library] › library/video.spec.ts:342 › screencast › should work for popups `@chromium-ubuntu-22.04-node20`
⚠️ [chromium-page] › page/page-request-continue.spec.ts:754 › propagate headers cross origin redirect after interception `@chromium-ubuntu-22.04-node20`
⚠️ [chromium-library] › library/popup.spec.ts:261 › should not throw when click closes popup `@chromium-ubuntu-22.04-node22`
⚠️ [firefox-library] › library/inspector/cli-codegen-1.spec.ts:1080 › cli codegen › should not throw csp directive violation errors `@firefox-ubuntu-22.04-node20`
⚠️ [firefox-page] › page/page-request-gc.spec.ts:19 › should work `@firefox-ubuntu-22.04-node20`

39102 passed, 846 skipped


Merge workflow run.

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.

2 participants