Skip to content

Commit 2871016

Browse files
Automate sponsored Transaction cases
1 parent bb39b2f commit 2871016

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

cryptox-android-autotests/src/test/java/cryptox_AndroidTest/RecoverAccounts/RecoverAccountThroughFileWallet.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,7 @@ public void import_wallet_through_File() throws IOException, InterruptedExceptio
5959
Assert.assertTrue(clickOnImportViaBackupFile());
6060
driver.activateApp(stagePackageName);
6161
Assert.assertTrue(clickOnElement("ok_button", 20));
62-
Assert.assertTrue(clickOnElementByXpath("//androidx.cardview.widget.CardView[@resource-id=\"com.google.android.documentsui:id/item_root\"]/androidx.cardview.widget.CardView/android.widget.LinearLayout", 20));
63-
Thread.sleep(10000);
64-
Assert.assertTrue(clickOnElementByXpath("//android.widget.LinearLayout[@resource-id=\"com.google.android.documentsui:id/nameplate\"]/android.widget.RelativeLayout",20));
65-
Thread.sleep(10000);
62+
Assert.assertTrue(clickOnElementByXpath("//android.widget.ImageView[@resource-id=\"com.google.android.documentsui:id/icon_thumb\"]", 20));
6663
Assert.assertTrue(SendTextToField("password_edittext", "000000", 20));
6764
Assert.assertTrue(clickOnElement("confirm_button", 20));
6865
Assert.assertTrue(verifyPinAndPressOK());

cryptox-android-autotests/testng.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
<test name="CryptoX - Android">
77
<classes>
88
<class name="cryptox_AndroidTest.baseClass"/>
9-
<!-- <class name="cryptox_AndroidTest.RecoverAccounts.RecoverAccountThroughFileWallet"/>-->
10-
<!-- <class name="cryptox_AndroidTest.Settings.settingsCases"/>-->
9+
<class name="cryptox_AndroidTest.RecoverAccounts.RecoverAccountThroughFileWallet"/>
10+
<class name="cryptox_AndroidTest.Settings.settingsCases"/>
1111
<class name="cryptox_AndroidTest.RecoverAccounts.recoverAccountThroughSeedPhrase"/>
1212
<class name="cryptox_AndroidTest.Validation.createValidatorWithNoDelegation"/>
1313
<class name="cryptox_AndroidTest.Validation.validatorWithOpenForDelegation"/>

0 commit comments

Comments
 (0)