Skip to content

chore(qa): drive the development build with Maestro - #80

Merged
PapiCuche merged 1 commit into
mainfrom
chore/maestro-qa-flows
Oct 21, 2026
Merged

PapiCuche merged 1 commit into
mainfrom
chore/maestro-qa-flows

Conversation

@PapiCuche

Copy link
Copy Markdown
Owner

Everything the native build could not be checked without a finger on the simulator now runs unattended. The gate that blocked this for three sessions — iOS asking «¿Abrir en "Black Dog"?» over the dev-client launcher — is system UI that simctl cannot dismiss, and Maestro can.

Flows

flow does
00-connect-dev-client clears the iOS confirmation, picks the server, waits for the app
01-customer-surface catalogue renders server prices; «Mi cuenta» reachable
02-internal-navigation internal home lists the modules this person's capabilities allow
03-pos-sale search → line → price → comprobante → charge → result with NV-…

03 writes (a real order, real stock), so it starts by reading the API base the app resolved — Profile → «Estado de integración» — and refuses to continue if it names production. It reads the app's own value rather than an env var the runner could get wrong.

Two selector lessons, both of which looked like app bugs first

A selector matches the whole string. A product card exposes one accessibility label — «iPhone 15 Pro, S/ 5,599.00, Últimas unidades» — which is correct for VoiceOver and means "iPhone 15 Pro" matches nothing. Pattern now allows for the price.

A field is tapped by its placeholder, not its label. Input puts the label on the caption, on the field's own accessibilityLabel and on its wrapper; only the field takes focus. Tapping the label reported COMPLETED and typed into nothing — which surfaced as the server refusing the sale with «Indica el efectivo recibido.» The app was right at every step; the flow was wrong.

Also learned: the server is addressed by URL, never by name — the launcher lists today's server and every stale one, all called «Black Dog Store».

Scope

No production code changed. Nothing here is bundled: the app does not import these files. Maestro itself is developer tooling (brew install mobile-dev-inc/tap/maestro, which pulls an openjdk).

🤖 Generated with Claude Code

Everything the native build could not be checked without a finger on the
simulator now runs unattended. The gate that blocked this for three sessions —
iOS asking «¿Abrir en "Black Dog"?» over the dev-client launcher — is system
UI that `simctl` cannot dismiss, and Maestro can.

Four flows: connect, the customer surface, the internal area, and a till sale
charged end to end. The sale one WRITES, so it starts by reading the API base
the app RESOLVED — from Profile → «Estado de integración» — and refuses to go
on if it names the production host. It reads the app's own value rather than
trusting an environment variable the runner could get wrong.

THE SERVER IS ADDRESSED BY ITS URL. The launcher lists today's server and
every one it remembers, all called «Black Dog Store», so tapping the name is a
coin toss between the current address and a stale one from another network. The
address is passed in.

TWO SELECTOR LESSONS, both of which looked like app bugs first:

A selector matches the WHOLE string. A product card exposes one accessibility
label — «iPhone 15 Pro, S/ 5,599.00, Últimas unidades» — which is right for
VoiceOver and means `"iPhone 15 Pro"` matches nothing.

A field is tapped by its PLACEHOLDER, not its label. `Input` puts the label on
the caption, on the field's own `accessibilityLabel` and on its wrapper; only
the field takes focus. Tapping the label reported COMPLETED and typed into
nothing, which surfaced as the server refusing the sale: «Indica el efectivo
recibido.» The app was right at every step — the flow was wrong.

No production code changed, and nothing here is bundled: the app does not
import these files.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@PapiCuche
PapiCuche merged commit 37c27b4 into main Oct 21, 2026
3 checks passed
@PapiCuche
PapiCuche deleted the chore/maestro-qa-flows branch October 21, 2026 19:26
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