forked from mosip/inji-wallet
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' of https://github.com/mosip/inji into develop
- Loading branch information
Showing
35 changed files
with
1,272 additions
and
78 deletions.
There are no files selected for viewing
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
45 changes: 45 additions & 0 deletions
45
injitest/src/main/java/io/mosip/test/mob/inji/pages/AboutInjiPage.java
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,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; | ||
} | ||
} |
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
55 changes: 55 additions & 0 deletions
55
injitest/src/main/java/io/mosip/test/mob/inji/pages/CredentialRegistryPage.java
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,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(); | ||
} | ||
} |
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
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
Oops, something went wrong.