Mercurial > public > simoleon
changeset 96:fa994172c050
Breaked in parts UI Tests
author | Dennis Concepción Martín <dennisconcepcionmartin@gmail.com> |
---|---|
date | Tue, 03 Aug 2021 15:40:47 +0100 |
parents | 04feeb708833 |
children | 6328724d7fbc 187d04e01cba |
files | Simoleon.xcodeproj/project.xcworkspace/xcuserdata/dennis.xcuserdatad/UserInterfaceState.xcuserstate SimoleonUITests/SimoleonUITests.swift |
diffstat | 2 files changed, 18 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
Binary file Simoleon.xcodeproj/project.xcworkspace/xcuserdata/dennis.xcuserdatad/UserInterfaceState.xcuserstate has changed
--- 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") }