Repository navigation
Maestro wave 3: the whole repair lifecycle, and two more defects - #82
Merged
Merged
Conversation
Three flows that carry one order from an approved quote to the customer walking out with the device, on the scratch backend: - 20 execution — starts the repair, records what was done and finishes it. Starting and finishing are EVENTS the server will not accept any other way, so the flow presses the buttons rather than using «Mover la orden». - 21 quality — opens a check, answers the four required points of the fixture's «Control general» and passes it. - 22 delivery — hands the device over and asserts the one thing the handover does not do: it registers no payment. Server proof: execution/start 201, execution/complete 200, quality 201, quality/pass 200, delivery 201. Three more selector facts, written into the flows: a field is reached by its placeholder or its position, never by its caption — the caption carries the same words and does not take focus; the swipe that dismisses a keyboard also moves the page, so tapping a heading above the field is steadier; and a tap that lands while a refetch re-renders is swallowed, so the flow waits for the section to settle first. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
The internal order screen drew its fulfilment buttons straight from
`available_fulfillment_transitions`, which carries the server's codes.
Staff at a counter were offered «ready_for_pickup» and «shipped» — the
machine's English name for a state — while the customer's own order
screen said «Listo para retiro» and «Enviado» from a map that was
already in the app.
The buttons now go through `describeFulfillmentStatus`, the same
describer the customer side uses, so one word per state across the whole
app.
Adds `23-order-fulfilment`, the flow that found it: it opens the
fixture's online order, reads the delivery record the web checkout
wrote, and refuses the screen if any raw code is on it. The flow is
read-only on purpose — the lifecycle runs forward, so moving the fixture
order would leave nothing for the next run, and the write is covered by
a contract smoke.
Regression test asserts both halves: no `label={next}`, and every
fulfilment code reads as Spanish rather than as itself.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
The root stack hides headers, because the tabs draw their own chrome.
Four routes that are pushed on top of the tabs were never registered —
cart, checkout, «Mi cuenta» and the customer notices — so each opened
with no navigation bar and no back button. Their own
`Stack.Screen options={{ title }}` named a bar that was not being drawn.
On «Mi cuenta» that turned into a dead end: a staff account has no
`Customer` record, the server answers 404 as it should, the error state
fills the screen, and there was nothing on it to press. The only way out
was the iOS back-swipe, which is a gesture, not an affordance.
Adds `24-customer-devices`, `25-messaging-settings` and
`26-account-fail-closed`. The last one is the flow that found this: it
asserts the app meets that 404 with its own screen AND a way back, and
records the fixture limitation plainly — the QA account is not a
customer, so the address book itself cannot be automated with it.
Regression test asserts every pushed route is registered with a header
and a back title, and that the default really is `headerShown: false`,
since that default is what makes the registration matter.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
27 records a payment against a repair and reads the balance the server recomputed — the app never does that arithmetic itself. Server proof: POST payments/ 201. Reversing is NOT driven. The confirming button inside the OS alert carries the same word as the row's own button underneath it, and an alert's buttons cannot be told apart from the page's by name or by position from here. The flow opens the warning instead and checks what it says: a reversal marks a payment as recorded in error and returns no money, because this platform cannot. The reversal itself stays a contract smoke. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
28 opens a draft, puts one unit in it, despatches it and receives it — stock moving between two branches through the screens a person uses, not through a contract smoke. Server proof: PUT items/ 200, POST dispatch/ 200, POST receive/ 200. This closes the limitation `05` recorded. Two things were in the way and neither was an app problem: the quantity field is reached from its caption, since its «0» placeholder matches every zero on the screen; and the number pad has no return key, so it has to be dragged away before it can stop covering «Despachar». The README now lists flows 20–28 and says plainly what is still out of reach: reversing a payment (two controls, one word, one of them in an OS alert), the customer address book (the QA account is not a customer), and consuming a part — the backend takes a `product_id` on a quote line and this app has no way to send one. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
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.
Nine more flows on the EAS development build, and the defects they found.
Everything writes against the scratch backend behind the fail-closed guard.
The defects
Staff were offered the status codes, not the states. The internal order
screen drew its fulfilment buttons straight from
available_fulfillment_transitions, which carries the server's codes — sosomebody at a counter was asked to choose «ready_for_pickup» or «shipped», in
English, while the customer's own order screen said «Listo para retiro» and
«Enviado» from a map already in the app. The buttons now go through
describeFulfillmentStatus.Four pushed screens had no way back. The root stack hides headers because
the tabs draw their own chrome, and cart, checkout, «Mi cuenta» and the
customer notices were never registered — each opened with no navigation bar
and no back button. Their own
Stack.Screen options={{ title }}named a barthat was not being drawn. On «Mi cuenta» that is a dead end: a staff account
has no
Customerrecord, the server answers 404 as it should, the error statefills the screen, and there was nothing on it to press.
The flows
execution/start 201,complete 200quality 201,quality/pass 200delivery 201payments 201items 200,dispatch 200,receive 20028closes the limitation05recorded: despatch and receipt are no longercontract-smoke-only. The quantity field is reached from its caption (its «0»
placeholder matches every zero on screen), and the number pad has to be dragged
away before it stops covering «Despachar».
With
09–12from wave 2, one repair now runs end to end through the app:received, diagnosed, quoted, approved, photographed, repaired, checked,
delivered and paid.
What is still out of reach, and why
the same word as the row's button underneath it; they cannot be told apart
from here. Contract smoke instead.
Customerrecord, so the customer surface answers 404 — correctly. Needs a customer
account in the fixture.
product; the backend accepts
product_idon a quote item and this app neversends one. A gap in the app, recorded rather than papered over.
Verification
npm run verifygreen: 112 suites, 2070 tests, including two new regressiontests — no transition button labelled with a raw code, and every pushed route
registered with a header and a back title.
No app code was changed to make automation easier.
🤖 Generated with Claude Code