Repository navigation
Puts the integer and number formats in words, so Try starts the patron fixture - #272
Merged
Merged
Conversation
…n fixture
Signup.Validation had a reader-facing message for the email format
alone, so ScreenEditor.Try.start/1 refused the patron registration
fixture as {:unsupported_format, ["age"]}. It now words the integer and
number formats too ("must be a whole number", "must be a number"),
choosing the sentence by the format the failing question names; a
number outside its min and max keeps riddler's own sentence. The
fixture stays as authored, and the sealed-secret test starts its
Journey through Try.start/1 with no format removed. Any other format
(phone, pattern) still raises and is still refused before Try starts.
The help field on the boolean and choice blocks is kept, and the
patron registration fixture now uses it on the card question and the
lending-rules question. A live test pins that a question inside a
chosen variant candidate is seeded from its presented value in the
screen editor draft: riddler resolves a variant to the winning
candidate, which replaces the variant, so the existing seeding already
reaches it and is unchanged.
Refs: se-mey1, se-u3qt
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 changes
Signup.Validationnow words theintegerandnumberformats ("must be a whole number", "must be a number"), choosing the sentence by the format the failing question names (pair/2). A number outside itsminandmaxkeeps riddler's own sentence.Signup.Validation.formats/0answers["email", "integer", "number"]; any other format (phone,pattern) still raises and is still refused byTry.start/1before it starts.Try.start/1therefore starts a Journey on the patron registration fixture as authored. The fixture's age question is untouched, and the sealed-secret test starts throughTry.start/1with no format removed.helpfield on the boolean and choice blocks is kept, and the patron registration fixture now uses it on the card question and the lending-rules question.presented/1) is unchanged.Provenance
Riddler.Screens, the container's winner replaces it): the presented nodes carry the winning candidate's questions at the top level, so the existing seeding reaches them; the new test would go red if the draft were seeded empty.integeras its example of a format the Journey cannot check; it now usesphone, which is still refused.Verification
mix qualitygreen on this branch: format, compile, dependencies, credo, dialyzer, 971 tests.presented/1, caught by the variant test.