Files
LCEssentials/PediFoodsUITests
Developer @ Loverde Company d06e5013a8 test(uitests): drain accumulated cart once per class before checkout tests
The cart is on-device state (CartState/SessionStateStore), not purely
server-side - it survives app relaunches on the same simulator and has
been accumulating real quantities across every manual and automated run
against the 'MARIBA' test store, with no reset in between. No one-tap
'empty cart' UI action exists; the app's only full-clear path (the
'Trocar de loja?' alert's 'Limpar carrinho e adicionar') only fires when
switching to a genuinely different store, which this suite never does.

Added CartCheckoutFlowTests.setUp() (class) to drain the cart via its
own per-item 'minus' control in a capped loop before this class's tests
run, once per class rather than once per test, so every run starts from
a known-empty cart.

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