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
2026-08-11 13:22:02 -03:00
2026-08-11 13:22:02 -03:00


Pedi Foods

This is a private repository.
Read the license

Owner

Any question or doubts, please send thru email

Daniel Arantes Loverde - daniel@loverde.com.br
Clarice Moro Arantes Loverde - clarice@loverde.com.br
Gustavo Moro Arantes Loverde - gustavo@loverde.com.br
Mariana Moro Arantes Loverde - mariana@loverde.com.br

Autor: Daniel Arantes Loverde

Description
Swift and SwiftUI algorithms helpers
Readme 31 MiB
v2.1.0 Latest
2026-09-16 13:32:23 -03:00
Languages
Swift 93.7%
C++ 6.3%