Repository navigation
Adds the onboarding end-to-end test - #267
Merged
Merged
Conversation
One durable test on SQLite walks the branch onboarding from its first screen to its closing one: two integrations picked, Back between the onboarding's own screens and inside a setup, none across the boundary between them, each setup finishing as a child with the outcome done. Every press is taken by a fresh process that holds only the execution id, after the stored row is read back. A test-only card-reader Path with a core.checkpoint shows Back taken before it and not offered after it, and a test-only parent whose subchart declares an outcome its child does not is refused before any child execution exists. Refs: se-ou2d
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.
What this adds
One durable test on SQLite,
test/statifier_examples/library/onboarding_end_to_end_test.exs, that walks the branch library onboarding end to end. It adds no code and changes no fixture.done, the one the subchart block declares.core.checkpoint, so the test builds a test-only copy of the card-reader setup with one after its location step and runs it as a Path of its own. Back is taken before the checkpoint, and after it Back is neither offered nor taken. The shipped setups are unchanged.synced. It is not the onboarding, so its child resolves from the shipped fixture list, where the library loan declaresdone. The refusal ischild_outcome_undeclared, and no child execution exists.What a restart is in this app
Nothing holds an execution between steps: every
Signup.Journeycall loads it fromStatifierExamples.Persistenceby its id. A restart is therefore a step taken by a process that has never seen the execution and holds only its id. Before each such step the test reads the stored execution row back and checks it is active, then takes the step from a freshTask: every press of the onboarding, every read of its focus, and the checkpoint and misfit steps. It runs in the same node, so it proves that the steps need nothing but the store and the id, and not that the node itself was restarted.Decisions this carries
Sabotage
Each mutation below was applied, turned the test red on an assertion, and was reverted from a copy, byte-equal:
Onboarding.focus/1always answering the onboarding execution itself.Journey's Back reader answeringtruefor every position.Durable's subchart host always answering the shipped fixture list.Durable's settled-position fold left out of a drive's reading.core.checkpoint(a dependency mutation, recompiled for the test environment).Review
The pre-request review round read the test. Taken: every press now runs in a fresh process, the closing screen's Back is refused as well as not offered, Back before the checkpoint is exercised, the children are sorted by id before they are matched, and a comment was reworded.
Gate: full
mix qualitygreen on SQLite on the tree committed.