forked from attentive-mobile/attentive-ios-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request attentive-mobile#95 from vespinola/feature/APP-2804
[APP-2804] Mobile App Domain Switching - iOS
- Loading branch information
Showing
20 changed files
with
562 additions
and
106 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
// | ||
// SwitchDomainPage.swift | ||
// CreativeUITest | ||
// | ||
// Created by Vladimir - Work on 2024-06-14. | ||
// | ||
|
||
import XCTest | ||
|
||
struct SwitchDomainPage: Page { | ||
private init() { } | ||
|
||
@discardableResult | ||
static func tapOnOk() -> Self.Type { | ||
okButton.tapOnElement() | ||
return self | ||
} | ||
|
||
@discardableResult | ||
static func tapOnCancel() -> Self.Type { | ||
cancelButton.tapOnElement() | ||
return self | ||
} | ||
|
||
@discardableResult | ||
static func fillDomainInput(text: String) -> Self.Type { | ||
domainTextField.tapOnElement() | ||
domainTextField.fillTextField(text) | ||
return self | ||
} | ||
|
||
@discardableResult | ||
static func verifyIfTitleExists() -> Self.Type { | ||
guard title.elementExists() else { | ||
XCTFail("Title does not exists") | ||
return self | ||
} | ||
return self | ||
} | ||
} | ||
|
||
fileprivate extension SwitchDomainPage { | ||
static var title: XCUIElement { | ||
app.staticTexts["Switch Domain"] | ||
} | ||
|
||
static var domainTextField: XCUIElement { | ||
app.textFields["Enter the new Domain here"] | ||
} | ||
|
||
static var okButton: XCUIElement { | ||
app.buttons["OK"] | ||
} | ||
|
||
static var cancelButton: XCUIElement { | ||
app.buttons["Cancel"] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,12 +39,12 @@ class AppDelegate : UIResponder, UIApplicationDelegate { | |
|
||
public static func createUserIdentifiers() -> [String: Any] { | ||
[ | ||
IDENTIFIER_TYPE_PHONE: "+15671230987", | ||
IDENTIFIER_TYPE_EMAIL: "[email protected]", | ||
IDENTIFIER_TYPE_CLIENT_USER_ID: "APP_USER_ID", | ||
IDENTIFIER_TYPE_SHOPIFY_ID: "207119551", | ||
IDENTIFIER_TYPE_KLAVIYO_ID: "555555", | ||
IDENTIFIER_TYPE_CUSTOM_IDENTIFIERS: ["customId": "customIdValue"] | ||
ATTNIdentifierType.phone: "+15671230987", | ||
ATTNIdentifierType.email: "[email protected]", | ||
ATTNIdentifierType.clientUserId: "APP_USER_ID", | ||
ATTNIdentifierType.shopifyId: "207119551", | ||
ATTNIdentifierType.klaviyoId: "555555", | ||
ATTNIdentifierType.customIdentifiers: ["customId": "customIdValue"] | ||
] | ||
} | ||
} |
Oops, something went wrong.