Files
LCEssentials/PediFoodsUITests
Developer @ Loverde Company 6fead38ad7 test(uitests): cover both add-on and plain-add product flows
The original helper only ever tapped the *first* product's add button
and assumed it went straight to Cart. That's the same single-path
assumption that produced the wrong 'product list never loaded'
diagnosis - the first product on this catalog ('Alcatra') has add-ons
and opens ProductDetailSheet ('Detalhes') instead of adding directly.
Fixing just the button selector would have hidden this and failed
differently on the next run.

Renamed reachCheckoutWithOneItem to reachCheckoutWithProducts(_:count:
Int = 3) and added addProduct(atIndex:in:), which taps the Nth
product's add button and branches on the real outcome: if
ProductDetailSheet appears, confirms via its own main action button
('Atualizar...') and waits for it to dismiss; otherwise the product
already added directly. Loops over the first 3 products (capped by the
actual button count) so both flows are exercised on every run,
regardless of which specific products the real catalog happens to give
add-ons to.

See decisions/2026-09-11-ui-test-shared-login-session.md follow-up.
2026-09-11 11:21:30 -03:00
..
2026-08-11 13:22:02 -03:00
2026-08-11 13:22:02 -03:00