Repository navigation
test(e2e): add a device, share a Project and join a Team through the Viewer - #3081
Merged
Merged
Conversation
…Viewer A new viewer-onboarding scenario runs ADR 0007 flows 1, 2 and 5 through the routes the Viewer's screens call. Only the coordinator's first device is set up with the CLI, as the ADR allows. The owner shares a Project with a teammate, adds a second device and confirms it in Devices, creates a Team with that Project, and a second teammate joins the Team on a new machine. A device approved from an older connection-only code is enrolled and receives nothing. No device receives the Project the owner kept. The Team is given a Project that was already shared directly, because a Project shared only with a Team never gets a Project boundary. The scenario joins the specialized E2E matrix, and the stack gains peer-d and peer-e.
Owner
Author
This stack of pull requests is managed by Graphite. Learn more about stacking. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
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.

Description
ADR 0007 requires an end-to-end test for each sync and sharing flow, completed without Advanced or the CLI. This adds a
viewer-onboardingscenario that runs flows 1, 2 and 5 through the routes the Viewer's own screens call. Only the coordinator's first device is set up with the CLI (sync enable,coordinator group create,coordinator device enroll), which the ADR allows until the Viewer can set up a coordinator's first owner.Each step and the Viewer screen it stands for:
New memories in alpha reach all three devices. Neither the owner's beta memories nor anything else reaches any device.
Two things the scenario does deliberately:
recipient_policy_exact_mapping_requiredbecause nothing creates the Project's managed boundary.The E2E stack gains
peer-dandpeer-e, and the scenario joins the specialized matrix inci.ymlande2e-full.yml.Type of Change
Testing
CODEMEM_E2E_BUILD=1 pnpm run e2e:viewer-onboardingpassed twice in an isolated Docker stack with synthetic data. Without the Devices confirmation, the second device receives nothing and the scenario fails.pnpm run test:ci-workflowpassed (75 tests),e2e/lib/compose.test.tspassed (21 tests), and the lint ratchet passed.Relevant checks pass locally (
pnpm run tsc,pnpm run lint,pnpm run test)Added/updated tests for changes
Manually verified changes work as expected
Checklist
pnpm run lintpasses for touched files)