Skip to content

Commit 53a8d45

Browse files
committed
test: update switch network test to streamline Arbitrum network addition
This commit refines the switch network test by removing redundant checks for the Localhost 8545 network and consolidating the Arbitrum network addition into a single step. This enhances test clarity and efficiency while ensuring the local node balance is verified after the network switch.
1 parent c0b965b commit 53a8d45

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

test/e2e/tests/network/switch-network.spec.ts

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,8 @@ describe('Switch network - ', function (this: Suite) {
4949
await switchToNetworkFromSendFlow(driver, 'Ethereum');
5050
await homePage.checkLocalNodeBalanceIsDisplayed();
5151

52-
// Validate the switch network functionality to test network
53-
await switchToNetworkFromSendFlow(driver, 'Localhost 8545');
54-
await homePage.checkLocalNodeBalanceIsDisplayed();
55-
56-
// Add Arbitrum network and perform the switch network functionality
57-
await searchAndSwitchToNetworkFromGlobalMenuFlow(
58-
driver,
59-
'Arbitrum One',
60-
);
52+
// Add Arbitrum network
53+
await searchAndSwitchToNetworkFromGlobalMenuFlow(driver, 'Arbitrum');
6154
await homePage.checkLocalNodeBalanceIsDisplayed();
6255

6356
// Validate the switch network functionality back to Ethereum Mainnet

0 commit comments

Comments
 (0)