Skip to content

Commit

Permalink
- Wrote a test case for testing RPC nodes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Keval Shukla authored and JamesSmartCell committed Apr 28, 2023
1 parent bca67f6 commit e6a74bc
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions app/src/androidTest/java/com/alphawallet/app/RPCNodesTest.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
package com.alphawallet.app;

import static androidx.test.espresso.matcher.ViewMatchers.withId;
import static androidx.test.espresso.matcher.ViewMatchers.withText;
import static com.alphawallet.app.steps.Steps.createNewWallet;
import static com.alphawallet.app.steps.Steps.gotoSettingsPage;
import static com.alphawallet.app.steps.Steps.selectMenu;
import static com.alphawallet.app.steps.Steps.toggleSwitch;
import static com.alphawallet.app.util.Helper.click;

import com.alphawallet.app.util.Helper;

import org.junit.Test;

public class RPCNodesTest extends BaseE2ETest
{

@Test
public void should_select_network()
{
createNewWallet();
gotoSettingsPage();
selectMenu("Select Active Networks");
toggleSwitch(R.id.mainnet_header);
click(withText(R.string.action_enable_testnet));
Helper.wait(1);
click(withId(R.id.action_node_status));
Helper.wait(3);

}
}

0 comments on commit e6a74bc

Please sign in to comment.