-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Credential Registry testcases, help page new test cases added , MOSIP-30054 MOSIP-30230 MOSIP-30282 #1024
Credential Registry testcases, help page new test cases added , MOSIP-30054 MOSIP-30230 MOSIP-30282 #1024
Changes from 3 commits
c9d1381
690ac95
ef2cf20
1c1c47d
0181efc
d0d69c4
8752d4f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
package io.mosip.test.mob.inji.pages; | ||
|
||
import io.appium.java_client.AppiumDriver; | ||
import io.appium.java_client.pagefactory.AndroidFindBy; | ||
import org.openqa.selenium.WebElement; | ||
|
||
public class AboutInjiPage extends BasePage{ | ||
@AndroidFindBy(accessibility = "aboutInji") | ||
private WebElement aboutInjiHeader; | ||
|
||
@AndroidFindBy(uiAutomator = "new UiSelector().textContains(\"Copy\")") | ||
private WebElement Copy; | ||
|
||
@AndroidFindBy(uiAutomator = "new UiSelector().textContains(\"Copied\")") | ||
private WebElement Copied; | ||
|
||
@AndroidFindBy(uiAutomator = "new UiSelector().resourceId(\"iconIcon\")") | ||
private WebElement backButton; | ||
|
||
public AboutInjiPage(AppiumDriver driver) { | ||
super(driver); | ||
} | ||
|
||
public boolean isaboutInjiHeaderDisplayed() { | ||
return this.isElementDisplayed(aboutInjiHeader, "ABOUT INJI"); | ||
} | ||
|
||
public boolean isAppidIsCopied() { | ||
return this.isElementDisplayed(Copied, "Copied"); | ||
} | ||
|
||
public boolean isCopyTextDisplayed() { | ||
return this.isElementDisplayed(Copy, "Copy"); | ||
} | ||
|
||
public AboutInjiPage clickOnCopy(){ | ||
clickOnElement(Copy); | ||
return this; | ||
} | ||
|
||
public AboutInjiPage clickOnBack(){ | ||
clickOnElement(Copy); | ||
return this; | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
package io.mosip.test.mob.inji.pages; | ||
|
||
import io.appium.java_client.AppiumDriver; | ||
import io.appium.java_client.pagefactory.AndroidFindBy; | ||
import org.openqa.selenium.WebElement; | ||
|
||
public class CredentialRegistryPage extends BasePage { | ||
|
||
@AndroidFindBy(uiAutomator = "new UiSelector().textContains(\"Edit Credential Registry\")") | ||
public WebElement CredentialRegistryTextBoxHeader; | ||
|
||
@AndroidFindBy(uiAutomator = "new UiSelector().resourceId(\"RNE__Input__text-input\")") | ||
public WebElement CredentialRegistryTextBox; | ||
|
||
@AndroidFindBy(uiAutomator = "new UiSelector().textContains(\"Save\")") | ||
public WebElement SaveButton; | ||
|
||
@AndroidFindBy(uiAutomator = "new UiSelector().textContains(\"Cancel\")") | ||
public WebElement CancelButton; | ||
|
||
@AndroidFindBy(uiAutomator = "new UiSelector().resourceId(\"iconIcon\")") | ||
public WebElement BackArrow; | ||
|
||
public CredentialRegistryPage(AppiumDriver driver) { | ||
super(driver); | ||
} | ||
|
||
public boolean isCredentialRegistryTextBoxHeaderDisplayed() { | ||
return this.isElementDisplayed(CredentialRegistryTextBoxHeader, "Credential Registry Text heder is visible"); | ||
} | ||
|
||
public CredentialRegistryPage setEnterIdTextBox(String env) { | ||
clearTextBoxAndSendKeys(CredentialRegistryTextBox, env, "Credential Registry env"); | ||
return this; | ||
} | ||
|
||
public CredentialRegistryPage clickOnSaveButton() { | ||
clickOnElement(SaveButton); | ||
return this; | ||
} | ||
|
||
public CredentialRegistryPage clickOnCancelButton() { | ||
clickOnElement(CancelButton); | ||
return this; | ||
} | ||
|
||
public CredentialRegistryPage clickOnBackArrow() { | ||
clickOnElement(BackArrow); | ||
return this; | ||
} | ||
|
||
public String CheckEnvNotChanged() { | ||
return CredentialRegistryTextBox.getText(); | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,6 +58,16 @@ public class DetailedVcViewPage extends BasePage{ | |
@AndroidFindBy(accessibility = "close") | ||
@iOSXCUITFindBy(accessibility = "close") | ||
private WebElement crossIcon; | ||
|
||
@AndroidFindBy(uiAutomator = "new UiSelector().resourceId(\"iconIcon\")") | ||
@iOSXCUITFindBy(iOSClassChain = "**/XCUIElementTypeOther[`label == \"\uE5CD\"`][2]") | ||
private WebElement qrCloseIcon; | ||
|
||
@AndroidFindBy(xpath = "//android.widget.ScrollView/android.view.ViewGroup/android.view.ViewGroup/android.view.ViewGroup/android.view.ViewGroup[1]/android.view.ViewGroup[1]/android.view.ViewGroup[1]/android.view.ViewGroup[1]/android.view.ViewGroup[1]/android.view.ViewGroup/android.view.ViewGroup") | ||
private WebElement detailedVcViewPageQr; | ||
|
||
@AndroidFindBy(accessibility = "qrCodeHeader") | ||
private WebElement qrCodeHeader; | ||
|
||
public DetailedVcViewPage(AppiumDriver driver) { | ||
super(driver); | ||
|
@@ -120,4 +130,18 @@ public HomePage clickOnCrossIcon(){ | |
clickOnElement(crossIcon); | ||
return new HomePage(driver); | ||
} | ||
} | ||
|
||
public HomePage clickOnQrCrossIcon(){ | ||
clickOnElement(qrCloseIcon); | ||
return new HomePage(driver); | ||
} | ||
|
||
public PleaseConfirmPopupPage clickOnQrCodeButton(){ | ||
clickOnElement(detailedVcViewPageQr); | ||
return new PleaseConfirmPopupPage(driver); | ||
} | ||
|
||
public boolean isQRCodeDisplayed() { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. camel casing |
||
return qrCodeHeader.isDisplayed(); | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,9 @@ public class HassleFreeAuthenticationPage extends BasePage { | |
@AndroidFindBy(xpath = "(//*[@class='android.widget.TextView'])[3]") | ||
@iOSXCUITFindBy(xpath = "//*[contains(@value,'Authenticate yourself')]") | ||
private WebElement hassleFreeAuthenticationDescription; | ||
|
||
@AndroidFindBy(xpath = "//*[contains(@text,'Go Back')]") | ||
public WebElement GoBackButton; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. camel casing |
||
|
||
public HassleFreeAuthenticationPage(AppiumDriver driver) { | ||
super(driver); | ||
|
@@ -26,4 +29,9 @@ public boolean isHassleFreeAuthenticationPageLoaded() { | |
public String getHassleFreeAuthenticationDescription() { | ||
return this.getTextFromLocator(hassleFreeAuthenticationDescription); | ||
} | ||
|
||
public HassleFreeAuthenticationPage clickOnGoBack() { | ||
clickOnElement(GoBackButton); | ||
return this; | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,10 +27,13 @@ public class MoreOptionsPage extends BasePage { | |
@iOSXCUITFindBy(accessibility = "profileAuthenticated") | ||
private WebElement activatedForOnlineLoginButton; | ||
|
||
@AndroidFindBy(xpath = "//*[@resource-id=\"iconIcon\"]") | ||
@AndroidFindBy(uiAutomator = "new UiSelector().resourceId(\"iconIcon\")") | ||
@iOSXCUITFindBy(iOSClassChain ="**/XCUIElementTypeOther[`label == \"\uE5CD\"`][1]") | ||
private WebElement CloseButton; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. camel casing |
||
|
||
@AndroidFindBy(uiAutomator = "new UiSelector().textContains(\"Something is wrong. Please try again later!\")") | ||
public WebElement SomthingIsWrongPopup; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. camel casing |
||
|
||
public MoreOptionsPage(AppiumDriver driver) { | ||
super(driver); | ||
} | ||
|
@@ -61,4 +64,8 @@ public HomePage ClickOnCloseButton() { | |
clickOnElement(CloseButton); | ||
return new HomePage(driver); | ||
} | ||
|
||
public boolean isSomthingIsWrongPopupVisible() { | ||
return this.isElementDisplayed(SomthingIsWrongPopup, "Something is wrong. Please try again later!"); | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
camel casing