Repository navigation
test(agent): pin the onboarding features page - FeaturesPage (Closes #1507) - #1962
Merged
Merged
Conversation
Summary by t27-beesThis PR adds a snapshot-style test that renders Worth a look
Read: 1 files, +52 -0, the whole diff. Head |
β Tests passed β 3628/3698
|
Collaborator
Author
|
CI gates on this SHA:
Dmitrii Fedorov (@dmitrii-f-t27) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #1507
What changed
One new file:
trios/agent-server/apps/agent/entrypoints/onboarding/features/Features.test.ts(the path the issue's Success Criteria names). The subjectFeatures.tsxis untouched.The 1 exported symbol is exercised (1
it(block; 0 blocked). The page is a hook-bearing component whose start button reaches for chrome APIs in its handler, so the pins read a static render of it (measured, the render goes through the pill, video frame, bento and community pieces with the mounted-gated grid hidden - the effect that flips it never runs in a static render, exactly the pre-mount frame a server would paint). The pins read that frame: the welcome pill, the hero copy, the scroll hint, the features heading, the community cards with their join labels, and the start button.Not pinned, and why (issue User Story 2): the start flow - it swaps the tab through chrome.tabs - and the mounted reveal - they live in effects and handlers that need a live document and window. The port env seam is seeded before any import can reach the env module (its one-time snapshot - the trap the agent-outputs suite documented), with the subject imported dynamically for that reason.
How it was verified (FR-004)
1 pass / 0 fail / 10 expect() calls, Ran 1 test across 1 file.0 pass / 1 fail / 4 expect() calls. The subject was restored byte-identical (git checkout;git diff --name-onlyprints nothing) and the suite passes again.bun run typecheckrunswxt prepare, whose generated.wxt/tsconfig.jsonmakes bun 1.3.6 stop resolving@/aliases for test runs until that generated directory is removed. CI's Tests jobs never runwxt prepare; every run quoted above is from a checkout without.wxt/.Not verified
Tests / agentjob re-runs the suite on this SHA.Dmitrii Fedorov (@dmitrii-f-t27)