Skip to content

Maestro wave 2: sixteen more flows, and the three defects they found - #81

Merged
PapiCuche merged 9 commits into
mainfrom
chore/maestro-flows-wave2
Oct 22, 2026
Merged

PapiCuche merged 9 commits into
mainfrom
chore/maestro-flows-wave2

Conversation

@PapiCuche

Copy link
Copy Markdown
Owner

Sixteen more Maestro flows against the EAS development build on an iOS
simulator, and the defects they turned up. Every writing flow runs against the
scratch backend and starts with the fail-closed guard that reads the API base
the app itself resolved.

The defects

The search field threw away everything after the first character. Orders,
stock and the repair board each returned a full-screen skeleton while a new
search term loaded — and that unmounted the SearchInput itself, so the rest
of the word went nowhere and the keyboard closed. The flow typed
zzz-no-existe and the field held z. The term is debounced now, the way the
customers screen and the shop already did it, and the loading state moved
inside the list so the header stays put.

Uploading a repair photo could not work at all. Expo SDK 57 installs a
WinterCG fetch over the app, and its multipart encoder takes a string, a
Blob, or something that can hand it bytes(). React Native's old
{ uri, name, type } shape is none of those, so every upload died inside the
app with «Unsupported FormDataPart implementation» — reported to the operator
as «Sin conexión», with nothing ever reaching the server. The photo is now
appended as expo-file-system's File. The contract smokes could not have
caught this: they never ran the app's own upload path.

The customer cards were unreachable with VoiceOver. A pressable card is one
accessibility element and absorbs its children, so the device buttons and
«Recibir un equipo de este cliente» were on screen and nowhere in the
accessibility tree. Only the name row opens the card now, and it announces its
expanded state.

The inventory summary printed «Productos con stock: 4 de 3». The two
numbers count different things — stock rows that hold units, and active
products — so the fraction was never meaningful. Each is shown under its own
name.

The flows

Flow Proves Server proof
05 transfers Draft between two branches, then withdrawn POST transfers/ 201, cancel/ 200
06 orders List, a search that matches nobody, one order opened —
07 customers Search, a person expanded, intake button reached —
08 service board Board, search, one order opened —
09 service intake A device received for a customer on file POST service/orders/ 201
10 diagnosis Order moved into diagnosis, finding saved POST diagnostics/ 201
11 quote Quote composed, sent, approved items/ 201, publish/ 200, decision/ 200
12 evidence A photo through the real iOS picker POST evidence/ 201
13 communications Communiqué drafted, aimed, published POST publish/ 200
14 notices Inbox and its unread filter —
15 platform Platform section and its status filters —
16 pdf-share 80 mm ticket fetched and handed to iOS GET ticket/ 200
17 tracking link Link revealed, then replaced reveal/ 200, rotate/ 200
18 deep links Four addresses, one of which does not exist —
19 resume Background and back, nothing latched offline —

Flows chain: 16 runs 11, which runs 10, which runs 09. Each works on an order
it opened itself rather than on whichever row the fixture happens to hold.

What it does not cover, and why

  • Marking a notice as read. The QA account publishes communiqués but never
    receives one: the audience is the company's active internal members, and this
    account reaches the area as a superuser. It needs a member account in the
    fixture.
  • Despatching and receiving a transfer. Covered as a contract smoke; the UI
    path collides on selectors that have nothing to do with the app.

Verification

npm run verify green: 110 suites, 2046 tests. All nineteen flows run on an
iPhone 16e simulator against the scratch backend.

No app code was changed to make automation easier. The three app changes here
are defects the automation exposed, each with its own commit.

🤖 Generated with Claude Code

PapiCuche and others added 9 commits October 21, 2026 19:54
Typing in the orders, stock or service-board search box threw away
everything after the first character. A new term is a new query key, so
the query reports `isPending` again, and each of those screens returned a
full-screen skeleton at that moment — which unmounted the `SearchInput`
itself, dropped the rest of the word and dismissed the keyboard.

The search term is now debounced, the way the customers screen and the
shop already do it, and the loading state moved inside the list, so the
header and its field stay on the screen while results are fetched.

Found by driving the development build with Maestro: the flow typed
"zzz-no-existe" and the field held "z".

In the same pass, the customer cards stopped being pressable as a whole.
A pressable card is ONE accessibility element and absorbs its children,
so the device buttons and «Recibir un equipo de este cliente» inside an
expanded card were on the screen but unreachable with VoiceOver. Only
the name row opens the card now, and it announces its expanded state.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Five flows against the scratch backend, driven on the iOS development
build:

- 05 transfers — opens a draft between two branches and withdraws it,
  confirming the dialog the app asks first.
- 06 orders — list, a search that matches nobody and comes back, and one
  order opened.
- 07 customers — the same search contract, then a person expanded and
  the intake button reached.
- 08 service board — list, search, one order opened.
- 09 service intake — receives a device for a customer who already has
  one on file, and lands on the numbered order the server returns.

Each writing flow starts from the shared fail-closed guard, so a run can
never reach production.

Notes that cost a run each, recorded in the flows themselves: a card is
read out as ONE accessibility element with its lines joined by commas;
`EmptyState` merges its title and message; the keyboard hides whatever
is behind it from Maestro; and the customer search matches each name
field on its own, so a full display name as one term matches nothing.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Two more flows, both writing against the scratch backend:

- 10 diagnosis — moves the order it just received into diagnosis and
  records a finding, asserting the revision the SERVER answers with
  rather than the words still sitting in the form.
- 11 quote — composes a quote with one line, sends it to the customer
  and records the approval, so the proof runs POST quotes/, items/,
  publish/ and decision/ in one pass.

Three Maestro facts that each cost a run, written into the flows:

- A multiline field has no return key, so `hideKeyboard` fails. Tapping
  other text to dismiss it is worse: «Guardar» sits BEHIND the keyboard,
  so the tap pressed the letter under it and typed into the field. A
  downward swipe dismisses it, which is what the screen already does.
- «Añadir línea» names two things — a caption and the button — so the
  button is reached by position, under the price hint.
- The confirming button in a dialog is named by the dialog, not by a
  convention: «Enviar», not «Confirmar».

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Uploading a repair photo failed on the device before a single byte left
it. The app said «Sin conexión», and the server never saw a request.

Expo SDK 57 installs a WinterCG `fetch` over the whole app, and that
implementation encodes multipart in JavaScript: a part has to be a
string, a `Blob`, or something that can hand it `bytes()`. React
Native's old `{ uri, name, type }` shape is none of those, so
`convertFormDataAsync` threw «Unsupported FormDataPart implementation»,
which the client could only report as a lost connection.

The photo is now appended as `expo-file-system`'s `File`, which
implements `Blob` and reads the file itself; the filename and content
type come off the file on disk, which is what Django's multipart parser
needs to treat the part as a file rather than a text field.

Found by driving the real iOS photo picker with Maestro — the contract
smokes could not have found it, because they never ran the app's own
upload path. Proven by the same flow: POST evidence/ 201, and the
gallery counts the photo under its stage.

Also adds .maestro/12-service-evidence.yaml, which goes through the
system picker end to end.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
- 13 communications — drafts a communiqué, aims it at the whole
  company, asks the server how far it would reach, and publishes it in
  the two presses the screen requires. Asserts the published state and
  the reading figures the server answers with.
- 14 notices — opens the inbox and switches the unread filter both
  ways.

Flow 14 records a fixture limitation rather than pretending to cover
what it cannot: the QA account publishes communiqués but never receives
one, because the audience is resolved from the company's active internal
members and this account reaches the area as a superuser instead. Until
the fixture has a member account, «Marcar todo leído» has nothing to
mark.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
- 15 platform — opens «Comunicados de plataforma» and switches its
  status filters, asserting the section is NOT the empty state an
  account without platform administration would see.
- 16 pdf-share — fetches the 80 mm ticket of an approved quote and
  hands it to iOS, asserting the share sheet shows the file this app
  named and that iOS reads it as a PDF.

Two things flow 16 had to learn: the navigation bar floats over the
list, so a button that stops just under it counts as visible and the tap
lands on the bar — the scroll has to centre it; and the sheet cannot be
recognised by the title the app passes, because the button that opens it
carries the same words.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
- 17 tracking-link — reveals the customer's link (a server act, gated
  by the server's own `canReveal`) and then replaces it, which
  invalidates the previous one.
- 18 deep-links — opens the app at a screen, a tab, the internal area
  and an address that does not exist, which has to land on «Esta
  pantalla no existe» rather than nowhere.
- 19 resume — parks the app on a network-backed screen, sends it to the
  background and brings it back. It is a regression guard for the
  latched «Sin conexión» that paused every mutation in the app: the
  resume must leave the screen live.

Flow 19 resumes with `launchApp: { stopApp: false }`. A plain
`launchApp` terminates first, which tests a cold start — a different
thing, and one that cannot latch.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
The summary read «Productos con stock: 4 de 3» in a shop with three
products, because the two numbers count different things: the server's
`stocked_count` counts STOCK ROWS that hold units — one row per product
and branch — while `active_products` counts products in the company. A
product held in two branches made the numerator larger than the
denominator, and the fraction was never meaningful even when it looked
plausible.

Each number is now shown under its own name, with «registros» for a row,
which is the word the stock list already uses.

Spotted while reading a Maestro hierarchy dump of the inventory hub.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Lists the nineteen flows, which of them write, and how they chain, so a
reader knows that `16` runs `11` runs `10` runs `09` and therefore works
on an order it opened itself.

Records the selector lessons that each cost a run: a card is one
accessibility element with its lines joined by commas; a pressable
container hides its children from assistive technology; the keyboard
hides what is behind it and a tap there presses a key; the navigation
bar floats over the list; `launchApp` terminates the app unless told
not to; and a name can belong to both a caption and a button.

Also states plainly what the suite does NOT cover — marking a notice as
read, and despatching a transfer — and why.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@PapiCuche
PapiCuche merged commit 29895f8 into main Oct 22, 2026
3 checks passed
@PapiCuche
PapiCuche deleted the chore/maestro-flows-wave2 branch October 22, 2026 05:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant