File tree 2 files changed +13
-0
lines changed
2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -63,6 +63,18 @@ class Networking {
63
63
throw NetworkingError . internalError ( reason: " Failed to determine device's IP address " )
64
64
}
65
65
66
+ /// Get configured ad serving domain as URL object
67
+ private static func getAdServingDomainURL( ) -> URL ? {
68
+ guard let adServingDomain = Bundle ( for: BaseUITestCase . self)
69
+ . infoDictionary ? [ " AdServingDomain " ] as? String ,
70
+ let adServingDomainURL = URL ( string: adServingDomain) else {
71
+ XCTFail ( " Ad serving domain not configured " )
72
+ return nil
73
+ }
74
+
75
+ return adServingDomainURL
76
+ }
77
+
66
78
/// Get configured ad serving domain
67
79
private static func getAdServingDomain( ) throws -> String {
68
80
guard let adServingDomain = Bundle ( for: Networking . self)
Original file line number Diff line number Diff line change @@ -117,6 +117,7 @@ class BaseUITestCase: XCTestCase {
117
117
118
118
func logoutIfLoggedIn( ) {
119
119
if isLoggedIn ( ) {
120
+ // First dismiss settings modal if presented
120
121
if isPresentingSettings ( ) {
121
122
SettingsPage ( app)
122
123
. swipeDownToDismissModal ( )
You can’t perform that action at this time.
0 commit comments