From 4c5147aaf8f3334b2b93b911cd96dd3d178d156e Mon Sep 17 00:00:00 2001 From: Keval Shukla Date: Tue, 29 Nov 2022 18:43:59 +0530 Subject: [PATCH] - Wrote a test case for testing RPC nodes. --- .../com/alphawallet/app/RPCNodesTest.java | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 app/src/androidTest/java/com/alphawallet/app/RPCNodesTest.java diff --git a/app/src/androidTest/java/com/alphawallet/app/RPCNodesTest.java b/app/src/androidTest/java/com/alphawallet/app/RPCNodesTest.java new file mode 100644 index 0000000000..373fb95a9b --- /dev/null +++ b/app/src/androidTest/java/com/alphawallet/app/RPCNodesTest.java @@ -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); + + } +}