Skip to content

Commit

Permalink
Merge pull request #50 from docknetwork/fix/failing-tests
Browse files Browse the repository at this point in the history
fix: proof request test
  • Loading branch information
Jayteekay authored Jul 18, 2024
2 parents 1cb0b08 + 03af3b1 commit 79061fe
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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\"]");
Expand All @@ -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"));
Expand Down

0 comments on commit 79061fe

Please sign in to comment.