Fix defects in Gherkin test definitions - #241
Conversation
- Add missing When step to scenario phone_number_verify_400.3, which jumped from Given to Then without ever sending the request, and fix its double-negative wording - Replace references to schemas PhoneNumber and HashedPhoneNumber, which exist neither in the wip spec nor in released bundles, with the phrasing already used by sibling scenarios - Correct copy-pasted phone_number_verify_401.* tags in the phoneNumberShare feature file to phone_number_share_401.* Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
|
Thanks for the review and for picking up these issues. For future releases, the But the lack of a So I would suggest to add a But first you will need to "sign" the EasyCLA agreement to become an authorised contributor. See the automated comment above for instructions. |
What type of PR is this?
correction
What this PR does / why we need it:
Fixes three defects in the Gherkin test definitions under
code/Test_definitions/:Missing
Whenstep — scenario@phone_number_verify_400.3_invalid_request_non_existing_propertywent straight fromGiventoThen, so the request it asserts on was never sent. AddedWhen the request "phoneNumberVerify" is sentand fixed the double-negative wording in the same scenario ("does not contain neither" → "contains neither").References to non-existent schemas — scenarios
400.4andC02.01referenced#/components/schemas/PhoneNumberand#/components/schemas/HashedPhoneNumber. Neither anchor exists innumber-verification.yaml(both are inline properties ofNumberVerificationRequestBody), nor in released bundles (verified against r3.1, where the CommonalitiesPhoneNumberschema is inlined as an anonymous property schema). Reworded400.4using the phrasing already used by sibling scenarios 04/05, and pointedC02.01at thephoneNumberproperty of#/components/schemas/NumberVerificationRequestBody, which does resolve.Copy-pasted scenario tags — the three 401 scenarios in
number-verification-phoneNumberShare.featurewere tagged@phone_number_verify_401.*; corrected to@phone_number_share_401.*so per-operation tag filtering selects the right scenarios.Both files parse cleanly with the official
@cucumber/gherkinparser after the change, and every scenario now contains an action step.Which issue(s) this PR fixes:
None — defects found while reviewing the test definitions.
Special notes for reviewers:
Not changed in this PR, but worth a maintainer's eye: the
Givenof@phone_number_verify_C02.01("a valid access token which does not identify a single phone number") reads as copied from device-identifier API templates. For Number Verification a 3-legged token always identifies the subscriber's phone number, so this precondition looks unsatisfiable as written. Happy to follow up with a separate issue/PR if you agree.Changelog input
Additional documentation
This section can be blank.