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.
227 lines
12 KiB
Swift
227 lines
12 KiB
Swift