From 03af3b14329b32faf43c9e2ee405d29fb26f1675 Mon Sep 17 00:00:00 2001 From: Johnson Tinuoye Date: Wed, 17 Jul 2024 09:08:19 +0100 Subject: [PATCH] fix: proof request test --- .../smoketests/appResetFalse/QRScanProofRequest.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/test/java/dock/android/smoketests/appResetFalse/QRScanProofRequest.java b/src/test/java/dock/android/smoketests/appResetFalse/QRScanProofRequest.java index d72d5f7..8a2573d 100644 --- a/src/test/java/dock/android/smoketests/appResetFalse/QRScanProofRequest.java +++ b/src/test/java/dock/android/smoketests/appResetFalse/QRScanProofRequest.java @@ -8,7 +8,6 @@ import dock.android.pageobjects.BaseTestCaseAndroid; import dock.android.pageobjects.WalletHomePage; import dock.utilities.TestGroup; -import io.appium.java_client.android.AndroidDriver; public class QRScanProofRequest extends BaseTestCaseAndroid { private By btnSelectCredential = By.xpath("//*[@content-desc=\"Select credential\"]"); @@ -32,14 +31,13 @@ public void verifyScanProofRequest() { .ensureHasCredential(); walletHomePage.scanQRCode(qrCodeValue).click(btnSelectCredential); walletHomePage.click(btnContinue); - walletHomePage.click(btnSelectAttribute); + walletHomePage.click(btnContinuePresent); + walletHomePage.waitABit(2000); if(driver.findElements(btnSelectDid).size() > 0){ walletHomePage.click(btnSelectDid); walletHomePage.click(By.xpath("//android.widget.TextView[contains(@text,'did:key')]")); } walletHomePage.click(btnContinuePresent); - walletHomePage.waitABit(2000); - walletHomePage.click(btnContinuePresent); walletHomePage.waitABit(5000); Assert.assertTrue(walletHomePage.isDisplayedByText("Verification"));