Skip to content

Commit e6a74bc

Browse files
Keval ShuklaJamesSmartCell
Keval Shukla
authored andcommitted
- Wrote a test case for testing RPC nodes.
1 parent bca67f6 commit e6a74bc

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
package com.alphawallet.app;
2+
3+
import static androidx.test.espresso.matcher.ViewMatchers.withId;
4+
import static androidx.test.espresso.matcher.ViewMatchers.withText;
5+
import static com.alphawallet.app.steps.Steps.createNewWallet;
6+
import static com.alphawallet.app.steps.Steps.gotoSettingsPage;
7+
import static com.alphawallet.app.steps.Steps.selectMenu;
8+
import static com.alphawallet.app.steps.Steps.toggleSwitch;
9+
import static com.alphawallet.app.util.Helper.click;
10+
11+
import com.alphawallet.app.util.Helper;
12+
13+
import org.junit.Test;
14+
15+
public class RPCNodesTest extends BaseE2ETest
16+
{
17+
18+
@Test
19+
public void should_select_network()
20+
{
21+
createNewWallet();
22+
gotoSettingsPage();
23+
selectMenu("Select Active Networks");
24+
toggleSwitch(R.id.mainnet_header);
25+
click(withText(R.string.action_enable_testnet));
26+
Helper.wait(1);
27+
click(withId(R.id.action_node_status));
28+
Helper.wait(3);
29+
30+
}
31+
}

0 commit comments

Comments
 (0)