Repository navigation
fix(browser): preserve trace popover state (fix #10906) - #11021
Conversation
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.
|
Hello @liuluochen6-af. Your PR has been labeled To keep your PR open, please follow these steps:
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. |
✅ Deploy Preview for vitest-dev ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
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
left a comment
There was a problem hiding this comment.
This look ok, but we need a real e2e test in test/ui. there are already some trace view tests there
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.
There was a problem hiding this comment.
remove unit and don't split restore-state.ts
There was a problem hiding this comment.
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.
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>
Co-authored-by: OpenCode (gpt-5.6-sol) <noreply@opencode.ai>
Co-authored-by: OpenCode (gpt-5.6-sol) <noreply@opencode.ai>
Resolves #10906
Please don't delete this checklist! Before submitting the PR, please make sure you do the following:
pnpm-lock.yamlunless you introduce a new test example.Tests
pnpm test:ci.CI=true pnpm lintpnpm buildpnpm typecheckpnpm -C packages/ui typecheck:clientPROVIDER=preview pnpm -C packages/ui test:ui restore-state.spec.ts --run --browser.headless=falseThe new Playwright integration test is included but could not be executed locally because the macOS sandbox denied the browser process permission to start.
Documentation
Changesets
fix:prefix and describes the change.