Skip to content

Commit

Permalink
cherrypicked 0040595 (#1418)
Browse files Browse the repository at this point in the history
Signed-off-by: Anup Nehe <[email protected]>
  • Loading branch information
anup-nehe authored May 7, 2024
1 parent 1456a4a commit 20a231a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
8 changes: 5 additions & 3 deletions injitest/src/main/java/inji/pages/MoreOptionsPage.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package inji.pages;

import inji.utils.IosUtil;
import io.appium.java_client.AppiumDriver;
import io.appium.java_client.pagefactory.AndroidFindBy;
import io.appium.java_client.pagefactory.iOSXCUITFindBy;
Expand All @@ -11,15 +12,15 @@ public class MoreOptionsPage extends BasePage {
// @iOSXCUITFindBy(accessibility = "removeFromWallet")
// private WebElement removeFromWalletButton;

@AndroidFindBy(uiAutomator = "new UiScrollable(new UiSelector().scrollable(true).instance(0)).scrollIntoView(new UiSelector().description(\"outlined-delete-icon\"))")
@AndroidFindBy(uiAutomator = "new UiScrollable(new UiSelector().scrollable(true).instance(0)).scrollIntoView(new UiSelector().description(\"removeFromWallet\"))")
@iOSXCUITFindBy(accessibility = "removeFromWallet")
private WebElement removeFromWalletButton;

@AndroidFindBy(accessibility = "kebabTitle")
@iOSXCUITFindBy(accessibility = "kebabTitle")
private WebElement moreOptionsText;

@AndroidFindBy(accessibility = "outlined-schedule-icon")
@AndroidFindBy(accessibility = "viewActivityLog")
@iOSXCUITFindBy(accessibility = "viewActivityLog")
private WebElement viewActivityLogButton;

Expand Down Expand Up @@ -65,6 +66,7 @@ public void clickOnPinOrUnPinCard() {
}

public HistoryPage clickOnViewActivityLog() {
IosUtil.scrollToElement(driver, 171, 2149, 625, 1944);
clickOnElement(viewActivityLogButton);
return new HistoryPage(driver);
}
Expand All @@ -88,6 +90,6 @@ public boolean isSomethingIsWrongPopupVisible() {
}

public boolean isVcActivatedDisplayed() {
return this.isElementDisplayed(activated);
return this.isElementDisplayed(activatedForOnlineLoginButton);
}
}
1 change: 1 addition & 0 deletions injitest/src/main/java/inji/pages/OtpVerificationPage.java
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ public void clickOnResendButton() {
throw new RuntimeException(e);
}
if(isElementEnabled(resendCodeButton,30)) {
// ((HidesKeyboard) driver).hideKeyboard();
clickOnElement(resendCode);
}
}
Expand Down
2 changes: 1 addition & 1 deletion injitest/src/main/java/inji/utils/TestDataReader.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ private static String getValueForKey(String key) {
case "newaid":
return "10001112180007620240217011225";
case "invalidaid":
return "10001100050003220231220202335";
return "10004101950000920240314061837";
case "invalidpasscode":
return "123456";
case "invaliduin":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ public void verifyActiveVcAndWaitForOtpTimeOut() throws InterruptedException {
otpVerification.WatingTimeForVerificationTimerComplete();
assertTrue(otpVerification.verifyResendCodeButtonDisplayedEnabled(), "Verify if resend code is enabled");
otpVerification.clickOnResendButton();
otpVerification.clickOnResendButton();
assertTrue(otpVerification.verifyOtpVerificationTimerDisplayedAfterClickOnResend(), "verify is You can resend the code displayed again after click on resend button ");
}

Expand Down

0 comments on commit 20a231a

Please sign in to comment.