diff --git a/Example/Pods/Pods.xcodeproj/project.pbxproj b/Example/Pods/Pods.xcodeproj/project.pbxproj index 0f752b92..5e8775ef 100644 --- a/Example/Pods/Pods.xcodeproj/project.pbxproj +++ b/Example/Pods/Pods.xcodeproj/project.pbxproj @@ -136,7 +136,7 @@ 1B0AB1F764B8B3C263215AFEFC01143A /* Cell.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = Cell.swift; sourceTree = ""; }; 1CB830EB632DA8DED42D4E33C4E59DD9 /* Pods-TABTestKit_Example-TABTestKit_ExampleUITests-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-TABTestKit_Example-TABTestKit_ExampleUITests-frameworks.sh"; sourceTree = ""; }; 21A5843633E4D75EE8E1556F939DB746 /* SystemPreferencesResetScreen.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = SystemPreferencesResetScreen.swift; sourceTree = ""; }; - 246C5312AD287517A78640A4FAF48421 /* ShowTime.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = ShowTime.framework; path = ShowTime.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 246C5312AD287517A78640A4FAF48421 /* ShowTime.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = ShowTime.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 26E0C2DB87953FDF97B668A8BE0A744E /* SecureTextField.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = SecureTextField.swift; sourceTree = ""; }; 270FD9B498764D8FEA3F42DB3007EE80 /* Sheet.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = Sheet.swift; sourceTree = ""; }; 2729792DB920A36618545DE30B46AA58 /* XCUIElement+hasKeyboardFocus.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = "XCUIElement+hasKeyboardFocus.swift"; sourceTree = ""; }; @@ -146,7 +146,7 @@ 2BEC99316035011631C40BFCF3197901 /* TextView.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = TextView.swift; sourceTree = ""; }; 2C061463250766C9C05995AB8EE63E66 /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.2.sdk/System/Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; }; 2E96D37C7B544B5D3F8FABFDB3A65DFD /* TextField.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = TextField.swift; sourceTree = ""; }; - 2E97F8EAABEDB0295C8BBA3ADB4A81C2 /* Pods_TABTestKit_Example_TABTestKit_ExampleUITests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = Pods_TABTestKit_Example_TABTestKit_ExampleUITests.framework; path = "Pods-TABTestKit_Example-TABTestKit_ExampleUITests.framework"; sourceTree = BUILT_PRODUCTS_DIR; }; + 2E97F8EAABEDB0295C8BBA3ADB4A81C2 /* Pods_TABTestKit_Example_TABTestKit_ExampleUITests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_TABTestKit_Example_TABTestKit_ExampleUITests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 310D0511477295F4E8D3A2CECA4D953A /* Image.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = Image.swift; sourceTree = ""; }; 31BB533F397C5D4FD9F1F0910B521877 /* NavBar.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = NavBar.swift; sourceTree = ""; }; 3343170286ADD343A663D64B81BB398B /* View.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = View.swift; sourceTree = ""; }; @@ -157,13 +157,13 @@ 44A8EB04ABAA59D35775222D7010AA51 /* Array+Safe.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = "Array+Safe.swift"; sourceTree = ""; }; 44D3D373915DB3F443D51C091A399226 /* AlertContext.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = AlertContext.swift; sourceTree = ""; }; 4A9E2EEC134947F1BCADD81AFCF32A5B /* Springboard.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = Springboard.swift; sourceTree = ""; }; - 5029125F64A9A19889E338765CD0299E /* TABTestKit.podspec */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; indentWidth = 2; lastKnownFileType = text; path = TABTestKit.podspec; sourceTree = ""; tabWidth = 2; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; - 516836C45DBE97859AF1DD3AC2CD4B01 /* Pods_TABTestKit_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = Pods_TABTestKit_Example.framework; path = "Pods-TABTestKit_Example.framework"; sourceTree = BUILT_PRODUCTS_DIR; }; + 5029125F64A9A19889E338765CD0299E /* TABTestKit.podspec */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; indentWidth = 2; path = TABTestKit.podspec; sourceTree = ""; tabWidth = 2; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; + 516836C45DBE97859AF1DD3AC2CD4B01 /* Pods_TABTestKit_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_TABTestKit_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 516FEC36F601143A1A7D9C4483043E02 /* Biometrics.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = Biometrics.m; sourceTree = ""; }; 525F300EF39DA23BCE9573EFDF316426 /* TabBar.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = TabBar.swift; sourceTree = ""; }; 549B858328CB2EF8360076242052506E /* Pods-TABTestKit_Example.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-TABTestKit_Example.modulemap"; sourceTree = ""; }; 58185D0DA6046583EA0F3992B136C18F /* XCUIElement+wait.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = "XCUIElement+wait.swift"; sourceTree = ""; }; - 5C817F0E0208382B131E5FFB430F8A17 /* TABTestKit.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = TABTestKit.framework; path = TABTestKit.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 5C817F0E0208382B131E5FFB430F8A17 /* TABTestKit.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = TABTestKit.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 5E1A9256A8DD33C89BAAB57A235F2804 /* Adjustable.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = Adjustable.swift; sourceTree = ""; }; 5EFFE450A2ED2E1A13F6291EF95C4F19 /* Header.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = Header.swift; sourceTree = ""; }; 69152FFA4489AC24B45BCE5208B3B41A /* ShowTime-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "ShowTime-umbrella.h"; sourceTree = ""; }; @@ -175,7 +175,7 @@ 7EECF51F8060F5B8BFA4281A38586E83 /* Screen.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = Screen.swift; sourceTree = ""; }; 833F3150E7163B9CDD9DC3F6667D24AE /* Switch.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = Switch.swift; sourceTree = ""; }; 91B1EB1FAB79CE231C85712DE4D31CC0 /* Pods-TABTestKit_Example-TABTestKit_ExampleUITests-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-TABTestKit_Example-TABTestKit_ExampleUITests-acknowledgements.plist"; sourceTree = ""; }; - 9636ED3E95A98C45C798682289AABB5A /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; path = README.md; sourceTree = ""; }; + 9636ED3E95A98C45C798682289AABB5A /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = ""; }; 965A292F186CF36A47FF8AB1CADE1B85 /* Pods-TABTestKit_Example-TABTestKit_ExampleUITests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-TABTestKit_Example-TABTestKit_ExampleUITests.release.xcconfig"; sourceTree = ""; }; 97B6600289CF1454BB2B7A95FE5523AB /* Slider.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = Slider.swift; sourceTree = ""; }; 99645CE216E89A6655EC66E732CECD38 /* Element.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = Element.swift; sourceTree = ""; }; @@ -183,7 +183,7 @@ 99E06D4FF45A3B2605A88BF7D8DDC1C9 /* Pods-TABTestKit_Example-TABTestKit_ExampleUITests-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-TABTestKit_Example-TABTestKit_ExampleUITests-dummy.m"; sourceTree = ""; }; 9C79CDE470DD3341A0A34BD1C052A973 /* NormalizedCoordinate+Locations.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = "NormalizedCoordinate+Locations.swift"; sourceTree = ""; }; 9D132E7F63ED7978B99EF4975197150F /* ScrollableScreen.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = ScrollableScreen.swift; sourceTree = ""; }; - 9D940727FF8FB9C785EB98E56350EF41 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; indentWidth = 2; lastKnownFileType = text; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; tabWidth = 2; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; + 9D940727FF8FB9C785EB98E56350EF41 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; indentWidth = 2; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; tabWidth = 2; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 9DB84493C64353132E6F27571A43A3F6 /* CollectionView.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = CollectionView.swift; sourceTree = ""; }; 9FEFF9CD73B2D6723ED60BBDD46577CD /* Pods-TABTestKit_Example-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-TABTestKit_Example-umbrella.h"; sourceTree = ""; }; A361D13461D8EC6C08FFF31BDF8D1806 /* BiometricsContext.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = BiometricsContext.swift; sourceTree = ""; }; @@ -219,7 +219,7 @@ E59DB98EC39EB118496B12CB4BE9C95C /* Alert.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = Alert.swift; sourceTree = ""; }; E846D1B6D74DE542E5CA9527BD39F15F /* Tappable.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = Tappable.swift; sourceTree = ""; }; E8D0C69508B528128406927836573B67 /* systemPreferencesRootScreen.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = systemPreferencesRootScreen.swift; sourceTree = ""; }; - E97F64AF467C08D1FB58F73CF59C7EB4 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; path = LICENSE; sourceTree = ""; }; + E97F64AF467C08D1FB58F73CF59C7EB4 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = LICENSE; sourceTree = ""; }; EAF2F2B8E583A5D847949453BAC20C6B /* ShowTime.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ShowTime.swift; path = Sources/ShowTime/ShowTime.swift; sourceTree = ""; }; EC7677F7A126781D8591BE7C185D48F7 /* Pods-TABTestKit_Example-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-TABTestKit_Example-frameworks.sh"; sourceTree = ""; }; EDF4947C9E27BB97B30F06939F64E9E0 /* CellContaining.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = CellContaining.swift; sourceTree = ""; }; @@ -294,7 +294,6 @@ EAF2F2B8E583A5D847949453BAC20C6B /* ShowTime.swift */, 3AD53452E6F9B27B718A63F5668EEEAC /* Support Files */, ); - name = ShowTime; path = ShowTime; sourceTree = ""; }; @@ -458,7 +457,6 @@ FBA47936DBE7936C98F0EC94B9E8CEAC /* Biometrics.h */, 76351B41B9C4CCADF915B35D11C74EAC /* Biometrics-Bridging-Header.h */, ); - name = include; path = include; sourceTree = ""; }; @@ -1174,8 +1172,7 @@ MTL_FAST_MATH = YES; PRODUCT_NAME = "$(TARGET_NAME)"; STRIP_INSTALLED_PRODUCT = NO; - SWIFT_COMPILATION_MODE = wholemodule; - SWIFT_OPTIMIZATION_LEVEL = "-O"; + SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; SWIFT_VERSION = 5.0; SYMROOT = "${SRCROOT}/../build"; }; diff --git a/Example/TABTestKit.xcodeproj/project.pbxproj b/Example/TABTestKit.xcodeproj/project.pbxproj index 162b0a9d..f1fc290c 100644 --- a/Example/TABTestKit.xcodeproj/project.pbxproj +++ b/Example/TABTestKit.xcodeproj/project.pbxproj @@ -10,6 +10,8 @@ 0C69DA1124B8A78D00E10F9E /* PageController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0C69DA1024B8A78D00E10F9E /* PageController.swift */; }; 0C69DA1324B8B7DC00E10F9E /* PageTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0C69DA1224B8B7DC00E10F9E /* PageTests.swift */; }; 0C69DA1524B8B85500E10F9E /* PageScreen.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0C69DA1424B8B85500E10F9E /* PageScreen.swift */; }; + 2DEAE7BA258BBC3900A0BD8E /* YellowPageScreen.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2DEAE7B9258BBC3900A0BD8E /* YellowPageScreen.swift */; }; + 2DEAE7BE258BC39700A0BD8E /* YellowPageController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2DEAE7BD258BC39700A0BD8E /* YellowPageController.swift */; }; 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD51AFB9204008FA782 /* AppDelegate.swift */; }; 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 607FACD91AFB9204008FA782 /* Main.storyboard */; }; 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDC1AFB9204008FA782 /* Images.xcassets */; }; @@ -56,6 +58,8 @@ 0C69DA1424B8B85500E10F9E /* PageScreen.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PageScreen.swift; sourceTree = ""; }; 0E196B5358EB5F29B443CE8E /* Pods_TABTestKit_Example_TABTestKit_ExampleUITests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_TABTestKit_Example_TABTestKit_ExampleUITests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 1CD6C67461B52B92ADDBB9FD /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = ""; }; + 2DEAE7B9258BBC3900A0BD8E /* YellowPageScreen.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YellowPageScreen.swift; sourceTree = ""; }; + 2DEAE7BD258BC39700A0BD8E /* YellowPageController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YellowPageController.swift; sourceTree = ""; }; 3275E3F4BE5C5BB1077B1015 /* Pods-TABTestKit_Example-TABTestKit_ExampleUITests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-TABTestKit_Example-TABTestKit_ExampleUITests.release.xcconfig"; path = "Pods/Target Support Files/Pods-TABTestKit_Example-TABTestKit_ExampleUITests/Pods-TABTestKit_Example-TABTestKit_ExampleUITests.release.xcconfig"; sourceTree = ""; }; 4AB14B2CDD5EE795DC5CFEBE /* Pods-TABTestKit_ExampleUITests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-TABTestKit_ExampleUITests.release.xcconfig"; path = "Pods/Target Support Files/Pods-TABTestKit_ExampleUITests/Pods-TABTestKit_ExampleUITests.release.xcconfig"; sourceTree = ""; }; 607FACD01AFB9204008FA782 /* TABTestKit_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = TABTestKit_Example.app; sourceTree = BUILT_PRODUCTS_DIR; }; @@ -164,6 +168,7 @@ C368AF2E235095CC0015803A /* CollectionViewController.swift */, C3DE8E4923291A34007E583B /* OtherElementsController.swift */, 0C69DA1024B8A78D00E10F9E /* PageController.swift */, + 2DEAE7BD258BC39700A0BD8E /* YellowPageController.swift */, 607FACD31AFB9204008FA782 /* Supporting Files */, ); name = "Example for TABTestKit"; @@ -209,6 +214,7 @@ C326D6A52327DAA7001AB082 /* TableScreen.swift */, C368AF32235098E70015803A /* CollectionViewScreen.swift */, C3DE8E442328F646007E583B /* TableSelectionScreen.swift */, + 2DEAE7B9258BBC3900A0BD8E /* YellowPageScreen.swift */, C3DE8E4B232920F4007E583B /* OtherElementsScreen.swift */, C3DE8E5E232A7564007E583B /* TabBarScreen.swift */, 0C69DA1424B8B85500E10F9E /* PageScreen.swift */, @@ -442,6 +448,7 @@ buildActionMask = 2147483647; files = ( 0C69DA1124B8A78D00E10F9E /* PageController.swift in Sources */, + 2DEAE7BE258BC39700A0BD8E /* YellowPageController.swift in Sources */, C326D660232788BA001AB082 /* BiometricLoginViewController.swift in Sources */, 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */, C326D6AD2327E8F7001AB082 /* TableController.swift in Sources */, @@ -466,6 +473,7 @@ C326D66423278D62001AB082 /* BiometricLogin_HappyPathTests.swift in Sources */, C368AF312350987D0015803A /* CollectionViewTests.swift in Sources */, C326D6A82327DC15001AB082 /* BiometricLogin_PermissionDeniedTests.swift in Sources */, + 2DEAE7BA258BBC3900A0BD8E /* YellowPageScreen.swift in Sources */, C326D6AC2327E847001AB082 /* TableTests.swift in Sources */, 0C69DA1324B8B7DC00E10F9E /* PageTests.swift in Sources */, C3DE8E452328F646007E583B /* TableSelectionScreen.swift in Sources */, diff --git a/Example/TABTestKit/Base.lproj/Main.storyboard b/Example/TABTestKit/Base.lproj/Main.storyboard index 5dc8dc24..a309c9d2 100644 --- a/Example/TABTestKit/Base.lproj/Main.storyboard +++ b/Example/TABTestKit/Base.lproj/Main.storyboard @@ -1,12 +1,11 @@ - - - - + + - + + @@ -38,10 +37,10 @@ - + - + @@ -72,21 +71,50 @@ - + - + + + + - + - + + + + + + + + + + + + + + + + + @@ -120,7 +148,7 @@ - + @@ -150,10 +178,10 @@ - + - + - - + - + @@ -189,52 +217,52 @@ - + - + - + - + - + - + - + - + - + - + @@ -242,10 +270,10 @@ - + - + @@ -259,15 +287,15 @@ - + - + - + @@ -276,13 +304,13 @@ - + - + @@ -290,8 +318,8 @@ - - + + @@ -300,7 +328,7 @@ - + @@ -309,7 +337,7 @@ - + @@ -330,6 +358,7 @@ + @@ -337,7 +366,6 @@ - @@ -379,7 +407,7 @@ - + @@ -400,7 +428,7 @@ - + @@ -432,7 +461,6 @@ - @@ -451,7 +479,7 @@ - + @@ -470,7 +498,7 @@ - + @@ -483,4 +511,15 @@ + + + + + + + + + + + diff --git a/Example/TABTestKit/YellowPageController.swift b/Example/TABTestKit/YellowPageController.swift new file mode 100644 index 00000000..e63181ea --- /dev/null +++ b/Example/TABTestKit/YellowPageController.swift @@ -0,0 +1,19 @@ +// +// YellowPageController.swift +// TABTestKit_Example +// +// Created by Anna Piktas on 17/12/2020. +// Copyright © 2020 The App Business LTD. All rights reserved. +// + +import UIKit + +final class YellowPageController: UIViewController { + + override func viewDidLoad() { + super.viewDidLoad() + view.accessibilityIdentifier = "YellowPage" + } + +} + diff --git a/Example/TABTestKit_ExampleUITests/TableSelectionScreen.swift b/Example/TABTestKit_ExampleUITests/TableSelectionScreen.swift index f2d5d41d..6e9cbe95 100644 --- a/Example/TABTestKit_ExampleUITests/TableSelectionScreen.swift +++ b/Example/TABTestKit_ExampleUITests/TableSelectionScreen.swift @@ -15,5 +15,6 @@ struct TableSelectionScreen: Screen { let trait = View(id: "TableSelection") let navBar = NavBar() let backButton = Button(id: "Table") + let nextPage = Button(id: "NextPage") } diff --git a/Example/TABTestKit_ExampleUITests/TableTests.swift b/Example/TABTestKit_ExampleUITests/TableTests.swift index 5d4cf1f0..92c3683b 100644 --- a/Example/TABTestKit_ExampleUITests/TableTests.swift +++ b/Example/TABTestKit_ExampleUITests/TableTests.swift @@ -21,13 +21,13 @@ final class TableTests: TABTestCase, SystemPreferencesContext { When(I: complete(biometricLoginScreen)) Then(I: see(tableScreen)) } - + Scenario("Refreshing the table screen") { Given(I: see(tableScreen)) When(I: refresh(tableScreen)) Then(the: state(of: tableScreen.section0Header, is: .visible)) } - + Scenario("Tapping on a cell in the first section and seeing the detail screen") { And(I: see(tableScreen.section0Header)) When(I: tap(tableScreen.table.cell(index: 0))) @@ -44,6 +44,17 @@ final class TableTests: TABTestCase, SystemPreferencesContext { And(the: label(of: tableSelectionScreen.navBar.header, is: "Row 14 section 1")) And(the: value(of: tableSelectionScreen.navBar.header, is: "Row 14 section 1")) } + + guard #available(iOS 14, *) else { + return + } + + Scenario("Selecting second option from UI context menu") { + Given(I: tap(tableSelectionScreen.nextPage)) + And(I: see(yellowPageScreen)) + When(I: tap(yellowPageScreen.contextMenuButtonTwo)) + Then(I: see(tableScreen)) + } } } diff --git a/Example/TABTestKit_ExampleUITests/YellowPageScreen.swift b/Example/TABTestKit_ExampleUITests/YellowPageScreen.swift new file mode 100644 index 00000000..5271e651 --- /dev/null +++ b/Example/TABTestKit_ExampleUITests/YellowPageScreen.swift @@ -0,0 +1,19 @@ +// +// YellowPageScreen.swift +// TABTestKit_ExampleUITests +// +// Created by Anna Piktas on 17/12/2020. +// Copyright © 2020 The App Business LTD. All rights reserved. +// + +import Foundation +import TABTestKit + +let yellowPageScreen = YellowPageScreen() + +struct YellowPageScreen: Screen { + + let trait = View(id: "YellowPage") + let contextMenuButtonOne = Button(id: "Row 14 section 1") + let contextMenuButtonTwo = Button(id: "Table") +}