changeset 139:a4aeca1ad34a

Fix random test crashes with Fastlane
author Dennis Concepcion Martin <dennisconcepcionmartin@gmail.com>
date Mon, 16 Aug 2021 20:59:21 +0100
parents 081f0857af51
children fd19def1ce3f
files SimoleonScreenshots/SimoleonScreenshots.swift fastlane/Snapfile
diffstat 2 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/SimoleonScreenshots/SimoleonScreenshots.swift	Mon Aug 16 19:10:25 2021 +0100
+++ b/SimoleonScreenshots/SimoleonScreenshots.swift	Mon Aug 16 20:59:21 2021 +0100
@@ -9,14 +9,14 @@
 import CoreData
 // Automate screenshots with Fastlane
 class SimoleonScreenshots: XCTestCase {
-    var screnshotEndingName = ""
+    var screenshotEndingName = ""
 
     override func setUpWithError() throws {
         // This method is called before the invocation of each test method in the class.
         
         if UIDevice.current.userInterfaceIdiom == .pad {
             XCUIDevice.shared.orientation = .landscapeLeft
-            screnshotEndingName = "-force_landscapeleft"
+            screenshotEndingName = "-force_landscapeleft"
         }
         
         let app = XCUIApplication()
@@ -37,7 +37,7 @@
         }
         
         sleep(2)
-        snapshot("1Launch\(screnshotEndingName)")
+        snapshot("1Launch\(screenshotEndingName)")
     }
     
     func testConvertAmountScreenshot() throws {
@@ -48,7 +48,7 @@
         let conversionTextField = XCUIApplication().textFields["ConversionTextField"]
         conversionTextField.tap()
         conversionTextField.typeText("1030.15\n")
-        snapshot("2Conversion\(screnshotEndingName)")
+        snapshot("2Conversion\(screenshotEndingName)")
     }
     
     func testCurrencySelectorScreenshot() throws {
@@ -57,7 +57,7 @@
         }
         
         XCUIApplication().scrollViews.buttons["OpenCurrencySelector"].tap()
-        snapshot("3CurrencySelector\(screnshotEndingName)")
+        snapshot("3CurrencySelector\(screenshotEndingName)")
     }
     
     func testFavoriteScreenshot() throws {
@@ -69,6 +69,6 @@
         
         sleep(1)
         
-        snapshot("4Favorites\(screnshotEndingName)")
+        snapshot("4Favorites\(screenshotEndingName)")
     }
 }
--- a/fastlane/Snapfile	Mon Aug 16 19:10:25 2021 +0100
+++ b/fastlane/Snapfile	Mon Aug 16 20:59:21 2021 +0100
@@ -22,7 +22,7 @@
 scheme("Screenshots")
 
 # Enabling this option will automatically uninstall the application before running it.
-# reinstall_app(true)
+reinstall_app(true)
 
 # Should the project be cleaned before building it?
 clean(true)