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 @@ -129,6 +129,7 @@ class BaseUITestCase: XCTestCase {
129
129
130
130
func logoutIfLoggedIn( ) {
131
131
if isLoggedIn ( ) {
132
+ // First dismiss settings modal if presented
132
133
if isPresentingSettings ( ) {
133
134
SettingsPage ( app)
134
135
. swipeDownToDismissModal ( )
You can’t perform that action at this time.
0 commit comments