Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesSmartCell committed Sep 23, 2024
1 parent 43b18d5 commit 52d1b00
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,14 @@
import android.os.Build;

import com.alphawallet.app.util.Helper;
import static androidx.test.espresso.Espresso.pressBack;

import org.junit.Test;

import java.util.HashMap;
import java.util.Map;

public class TransferTest extends BaseE2ETest
public class AATransferTest extends BaseE2ETest
{
// On CI server, run tests on different API levels concurrently may cause failure: Replacement transaction underpriced.
// Use different wallet to transfer token from can avoid this error
Expand Down Expand Up @@ -62,6 +63,7 @@ public void should_transfer_from_an_account_to_another()

sendBalanceTo("GETH", "0.001", newWalletAddress);
ensureTransactionConfirmed();
pressBack();
switchToWallet(newWalletAddress);
assertBalanceIs("0.001");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
/**
* Created by JB on 1/09/2022.
*/
public class AAATokenScriptCertificateTest extends BaseE2ETest
public class TokenScriptCertificateTest extends BaseE2ETest
{
private String doorContractAddress;
private final String contractOwnerPk = "0x69c22d654be7fe75e31fbe26cb56c93ec91144fab67cb71529c8081971635069";
Expand All @@ -58,7 +58,7 @@ public class AAATokenScriptCertificateTest extends BaseE2ETest
}
};

public AAATokenScriptCertificateTest()
public TokenScriptCertificateTest()
{
int apiLevel = Build.VERSION.SDK_INT;
String[] array = WALLETS_ON_GANACHE.get(String.valueOf(apiLevel));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
import java.util.HashMap;
import java.util.Map;

public class AATransferERC20Test extends BaseE2ETest
public class TransferERC20Test extends BaseE2ETest
{
private String contractAddress;
private final String contractOwnerPk = "0x69c22d654be7fe75e31fbe26cb56c93ec91144fab67cb71529c8081971635069";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ public static void assertBalanceIs(String balanceStr)

public static void ensureTransactionConfirmed()
{
Helper.wait(6);
// onView(withText(R.string.rate_no_thanks)).perform(click());
// now this view goes straight to activity pane
shouldSee("Activity");
Expand Down

0 comments on commit 52d1b00

Please sign in to comment.