migration

This commit is contained in:
Daniel Arantes Loverde
2026-08-11 13:22:02 -03:00
parent c4d6998595
commit 7702836fe7
231 changed files with 4329 additions and 1958 deletions

View File

@@ -0,0 +1,29 @@
import XCTest
/// Covers Profile -> Meus Cartões -> Novo Cartão
/// (SavedCardsView.swift + AddCardFormView.swift, ~1170 lines on the form
/// alone, was 0% covered). Only reaches the form, doesn't submit a real
/// card.
final class SavedCardsFlowTests: XCTestCase {
override func setUpWithError() throws {
continueAfterFailure = false
}
override func tearDownWithError() throws {
XCUIApplication().logoutIfAuthenticated()
}
func testAddCardFormReachableFromSavedCards() throws {
let app = XCUIApplication()
app.launch()
XCTAssertTrue(app.ensureLoggedIn(), "Login never completed")
XCTAssertTrue(app.buttons["Sair da Conta"].waitForExistence(timeout: 10), "Never reached authenticated Profile")
app.staticTexts["Meus Cartões"].tap()
XCTAssertTrue(app.staticTexts["Meus Cartões"].waitForExistence(timeout: 10), "Never reached Meus Cartões")
app.staticTexts["Adicionar novo cartão"].tap()
XCTAssertTrue(app.staticTexts["Novo Cartão"].waitForExistence(timeout: 10), "Never reached Novo Cartão form")
XCTAssertTrue(app.staticTexts["Número do cartão"].waitForExistence(timeout: 5))
}
}