-
Notifications
You must be signed in to change notification settings - Fork 530
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Wrote a test case for testing RPC nodes.
- Loading branch information
1 parent
bca67f6
commit e6a74bc
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
31 changes: 31 additions & 0 deletions
31
app/src/androidTest/java/com/alphawallet/app/RPCNodesTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
|
||
} | ||
} |