Skip to content

fix(browser): preserve trace popover state (fix #10906) - #11021

Merged
sheremet-va merged 7 commits into
vitest-dev:mainfrom
liuluochen6-af:fix/trace-popover-state
Aug 21, 2026
Merged

sheremet-va merged 7 commits into
vitest-dev:mainfrom
liuluochen6-af:fix/trace-popover-state

Conversation

@liuluochen6-af

@liuluochen6-af liuluochen6-af commented Aug 20, 2026 •

Copy link
Copy Markdown
Contributor

Resolves #10906

Please don't delete this checklist! Before submitting the PR, please make sure you do the following:

  • It's really useful if your PR references an issue where it is discussed ahead of time. If the feature is substantial or introduces breaking changes without a discussion, PR might be closed.
  • Ideally, include a test that fails without this PR but passes with it.
  • Please, don't make changes to pnpm-lock.yaml unless you introduce a new test example.
  • Please check Allow edits by maintainers to make review process faster. Note that this option is not available for repositories that are owned by Github organizations.

Tests

  • Run the tests with pnpm test:ci.
  • CI=true pnpm lint
  • pnpm build
  • pnpm typecheck
  • pnpm -C packages/ui typecheck:client
  • PROVIDER=preview pnpm -C packages/ui test:ui restore-state.spec.ts --run --browser.headless=false

The new Playwright integration test is included but could not be executed locally because the macOS sandbox denied the browser process permission to start.

Documentation

  • No documentation change is needed; this restores existing browser trace state.

Changesets

  • The PR title uses the fix: prefix and describes the change.

Record open popovers in browser trace snapshots and restore them after rebuilding the trace view. Add browser-level coverage for capture and replay.

Generated by OpenAI Codex on behalf of @liuluochen6-af; not yet reviewed by the account owner.
@github-actions github-actions Bot added the maybe automated User is likely an AI agent, or the content was generated by an AI assistant without user control label Aug 20, 2026
@github-actions

Copy link
Copy Markdown

Hello @liuluochen6-af. Your PR has been labeled maybe automated because it appears to have been fully generated by AI with no human involvement.

To keep your PR open, please follow these steps:

  • Confirm that you are a real human. If you are an automated agent, disclose that
  • Make sure you've read, reviewed and stand behind its content
  • Make sure you've read the full issue along with all of its comments, as well as any linked issues and their comments
  • Make sure it follows our contribution guidelines and uses the correct GitHub template
  • Disclose any AI tools you used (e.g. Claude, Copilot, Codex)

Please, do not generate or format the response with AI. If you do not speak English, reply in your native language or use translation software like Google Translate or Deepl. If the response is generated, the PR will be closed automatically.

These measures help us reduce maintenance burden and keep the team's work efficient. See our AI contributions policy for more context.

@netlify

netlify Bot commented Aug 20, 2026

Copy link
Copy Markdown

✅ Deploy Preview for vitest-dev ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit bc71da8
🔍 Latest deploy log https://app.netlify.com/projects/vitest-dev/deploys/6a86d46a421c520008c12008
😎 Deploy Preview https://deploy-preview-11021--vitest-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@liuluochen6-af

Copy link
Copy Markdown
Contributor Author

I'm louluochen6-af. I'm a real human. I've read and reviewed the relevant content. I've read the whole post and all the comments, including the comments in the link. This document follows the contribution guidelines and uses the correct GitHub template. I use codex to assist in development.

@sheremet-va sheremet-va removed the maybe automated User is likely an AI agent, or the content was generated by an AI assistant without user control label Aug 20, 2026

@sheremet-va sheremet-va left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This look ok, but we need a real e2e test in test/ui. there are already some trace view tests there

@hi-ogawa hi-ogawa self-assigned this Aug 21, 2026
Move the popover replay coverage into the existing trace-view end-to-end suite for both the live UI and HTML reporter.

Generated by OpenAI Codex on behalf of @liuluochen6-af; not yet reviewed by the account owner.

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.

remove unit and don't split restore-state.ts

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The unit test has been deleted and then the separate helper file has been deleted. The end-to-end coverage of the logic has been inlined to traceview.vue test/ui is still retained. I have reviewed and approved these modifications.

liuluochen6-af and others added 2 commits August 21, 2026 14:26
Remove the redundant unit test and helper module now that the behavior is covered by the trace-view end-to-end suite.

Generated by OpenAI Codex on behalf of @liuluochen6-af; not yet reviewed by the account owner.
Co-authored-by: OpenCode (gpt-5.6-sol) <noreply@opencode.ai>
hi-ogawa
hi-ogawa previously approved these changes Aug 21, 2026
hi-ogawa and others added 2 commits August 21, 2026 14:49
Co-authored-by: OpenCode (gpt-5.6-sol) <noreply@opencode.ai>
@sheremet-va
sheremet-va merged commit 1bbc278 into vitest-dev:main Aug 21, 2026
28 of 29 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 5, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Preserve popups in browser mode trace

3 participants