Skip to content

Conversation

@mxschmitt
Copy link
Contributor

@mxschmitt mxschmitt commented Jul 3, 2025

What does it fix?

The browser by default when you use the native search functionality only looks at visible nodes. For detail/summary it includes it as well and automatically expands them. This is handy for e.g. attachments (stdout/stderr) in the html reporter. Since we previously didn't use them, the expansion had to be done manually. This PR addresses that so that command + F and search for the query does automatically expand it.

There should be no other UI changes besides that, it should look and behave the same.

@mxschmitt mxschmitt requested a review from agg23 July 3, 2025 21:08
@mxschmitt mxschmitt force-pushed the html/attachments/details branch from 03d5057 to d05ed36 Compare July 3, 2025 21:40
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@mxschmitt mxschmitt marked this pull request as ready for review July 4, 2025 07:48
@mxschmitt mxschmitt requested a review from Skn0tt July 4, 2025 07:48
Copy link
Member

@Skn0tt Skn0tt left a comment

Choose a reason for hiding this comment

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

Nice, looking good! Took a little while to review the change, but I can't spot any functional regressions.

Copy link
Contributor

@agg23 agg23 left a comment

Choose a reason for hiding this comment

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

For changes like this in the future, it is very helpful to include before and after screenshots even if you believe there to be no visual change. There is obviously significant DOM and styling changes here, so helping the reviewer understand there is actually no change would be appreciated.

Otherwise looks good. Given the amount of inline styling and the fact that links.css already exists, I would recommend moving these styles into a stylesheet.

@mxschmitt mxschmitt force-pushed the html/attachments/details branch from d05ed36 to 20b8b6d Compare July 16, 2025 21:13
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions
Copy link
Contributor

Test results for "tests 1"

8 flaky ⚠️ [firefox-library] › library/inspector/cli-codegen-1.spec.ts:1079:7 › cli codegen › should not throw csp directive violation errors @firefox-ubuntu-22.04-node18
⚠️ [playwright-test] › ui-mode-trace.spec.ts:587:5 › should indicate current test status @macos-latest-node18-1
⚠️ [playwright-test] › ui-mode-test-watch.spec.ts:145:5 › should watch all @ubuntu-latest-node18-1
⚠️ [playwright-test] › ui-mode-test-watch.spec.ts:145:5 › should watch all @ubuntu-latest-node20-1
⚠️ [playwright-test] › ui-mode-test-watch.spec.ts:145:5 › should watch all @ubuntu-latest-node22-1
⚠️ [playwright-test] › ui-mode-test-watch.spec.ts:145:5 › should watch all @ubuntu-latest-node24-1
⚠️ [webkit-page] › page/page-screenshot.spec.ts:345:5 › page screenshot › should work while navigating @webkit-ubuntu-22.04-node18
⚠️ [playwright-test] › ui-mode-test-watch.spec.ts:145:5 › should watch all @windows-latest-node18-1

46752 passed, 926 skipped
✔️✔️✔️

Merge workflow run.

@mxschmitt mxschmitt merged commit 6a21e54 into microsoft:main Jul 17, 2025
54 of 56 checks passed
@mxschmitt mxschmitt deleted the html/attachments/details branch July 17, 2025 06:56
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.

4 participants