# HG changeset patch # User Dennis Concepción Martín # Date 1628001647 -3600 # Node ID fa994172c050bd4ece05f71fe65d1981452a9c13 # Parent 04feeb708833adc6241d3a726dcef5c8402d2d83 Breaked in parts UI Tests diff -r 04feeb708833 -r fa994172c050 Simoleon.xcodeproj/project.xcworkspace/xcuserdata/dennis.xcuserdatad/UserInterfaceState.xcuserstate Binary file Simoleon.xcodeproj/project.xcworkspace/xcuserdata/dennis.xcuserdatad/UserInterfaceState.xcuserstate has changed diff -r 04feeb708833 -r fa994172c050 SimoleonUITests/SimoleonUITests.swift --- a/SimoleonUITests/SimoleonUITests.swift Tue Aug 03 15:02:40 2021 +0100 +++ b/SimoleonUITests/SimoleonUITests.swift Tue Aug 03 15:40:47 2021 +0100 @@ -24,15 +24,13 @@ } // MARK: - Automate screenshots - func testScreenshots() throws { + func testLaunchScreenshots() { let app = XCUIApplication() setupSnapshot(app) - - // MARK: - Launch app.launch() snapshot("0-Launch") - - // MARK: - Remove 100 from conversion textfield and type custom amount + + // Remove 100 from conversion textfield and type custom amount let conversionTextfield = app.textFields["ConversionTextfield"] conversionTextfield.tap() for _ in (0..<4) { @@ -46,8 +44,14 @@ conversionTextfield.typeText(XCUIKeyboardKey.delete.rawValue) } conversionTextfield.typeText("1000\n") + } + + func testCurrencySelectorScreenshots() throws { + let app = XCUIApplication() + setupSnapshot(app) + app.launch() - // MARK: - Open currency selector, search BTC, and select first row + // Open currency selector, search BTC, and select first row app.buttons["CurrencySelector"].tap() snapshot("2-CurrencySelector") @@ -56,9 +60,14 @@ searchBar.typeText("BTC") app.buttons["CurrencyRow"].firstMatch.tap() snapshot("3-Bitcoin") - - // MARK: - Go to favorites - conversionTextfield.typeText("\n") // Dismiss keyboard + } + + func testFavorites() throws { + let app = XCUIApplication() + setupSnapshot(app) + app.launch() + + // Go to favorites app.tabBars.buttons.element(boundBy: 1).tap() snapshot("4-Favorites") }