testConfirmarEPagarWithCreditCardOpensCardSelectionWithoutSubmitting now also taps CardSelectionSheet's "Adicionar novo cartão", which opens PaymentCardView (CheckoutView.swift's own card-entry form - a distinct struct from AddCardFormView.swift, which is a separate screen reached from Profile -> Meus Cartões and already covered). Doesn't fill or submit anything, just reaches the form and dismisses back through both sheets. Extracted the shared "x" close-button dismiss logic (used by both CardSelectionSheet and PaymentCardView) into a private dismissViaCloseButton helper. Verified stable across 2 consecutive class-level runs.
190 lines
9.9 KiB
Swift
190 lines
9.9 KiB
Swift