changeset 101:dd4d99fa8966

Merge branch 'development' into beta
author Dennis Concepción Martín <dennisconcepcionmartin@gmail.com>
date Tue, 03 Aug 2021 18:54:55 +0100
parents 6328724d7fbc (current diff) e3e6dfd7fdbf (diff)
children 887ea63452b5
files
diffstat 4 files changed, 10 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
Binary file Simoleon.xcodeproj/project.xcworkspace/xcuserdata/dennis.xcuserdatad/UserInterfaceState.xcuserstate has changed
--- a/Simoleon/Helpers/Sidebar.swift	Tue Aug 03 18:03:09 2021 +0100
+++ b/Simoleon/Helpers/Sidebar.swift	Tue Aug 03 18:54:55 2021 +0100
@@ -20,6 +20,7 @@
             NavigationLink(destination: Favorites()) {
                 Label("Favorites", systemImage: "star")
             }
+            .accessibility(identifier: "Favorites")
             
             NavigationLink(destination: Settings()) {
                 Label("Settings", systemImage: "gear")
--- a/SimoleonUITests/SimoleonUITests.swift	Tue Aug 03 18:03:09 2021 +0100
+++ b/SimoleonUITests/SimoleonUITests.swift	Tue Aug 03 18:54:55 2021 +0100
@@ -11,7 +11,6 @@
 
     override func setUpWithError() throws {
         // Put setup code here. This method is called before the invocation of each test method in the class.
-        
 
         // In UI tests it is usually best to stop immediately when a failure occurs.
         continueAfterFailure = false
@@ -68,7 +67,13 @@
         app.launch()
         
         // Go to favorites
-        app.tabBars.buttons.element(boundBy: 1).tap()
+        if UIDevice.current.userInterfaceIdiom == .pad {
+            app.navigationBars.buttons.element(boundBy: 0).tap()
+            app.buttons["Favorites"].tap()
+        } else {
+            app.tabBars.buttons.element(boundBy: 1).tap()
+        }
+
         snapshot("4-Favorites")
     }
 
--- a/fastlane/Snapfile	Tue Aug 03 18:03:09 2021 +0100
+++ b/fastlane/Snapfile	Tue Aug 03 18:54:55 2021 +0100
@@ -4,7 +4,7 @@
 devices([
 	"iPhone 8 Plus",
 	"iPhone 12 Pro Max",
-	"iPad Pro (12.9-inch) (5th generation)"
+	"iPad Pro (12.9-inch) (4th generation)"
 ])
 
 languages([
@@ -20,7 +20,7 @@
 ])
 
 # The name of the scheme which contains the UI Tests
-scheme("Tests")
+scheme("Screenshots")
 
 # Where should the resulting screenshots be stored?
 # output_directory("./screenshots")