Skip to content

Commit

Permalink
fix: fix regression tests
Browse files Browse the repository at this point in the history
  • Loading branch information
salimtb committed May 3, 2024
1 parent 9797655 commit a48f9d6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion e2e/pages/Settings/NetworksView.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ class NetworkView {
return Matchers.getElementByLabel(NetworkViewSelectorsText.BLOCK_EXPLORER);
}

get chainIdLabel() {
return Matchers.getElementByLabel(NetworkViewSelectorsText.CHAIN_ID_LABEL);
}

get rpcWarningBanner() {
return Matchers.getElementByID(NetworksViewSelectorsIDs.RPC_WARNING_BANNER);
}
Expand Down Expand Up @@ -169,7 +173,7 @@ class NetworkView {

async swipeToRPCTitleAndDismissKeyboard() {
// Because in bitrise the keyboard is blocking the "Add" CTA
await Gestures.waitAndTap(this.blockExplorer);
await Gestures.waitAndTap(this.chainIdLabel);
}
}

Expand Down
1 change: 1 addition & 0 deletions e2e/selectors/Settings/NetworksView.selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export const NetworksViewSelectorsIDs = {

export const NetworkViewSelectorsText = {
BLOCK_EXPLORER: enContent.app_settings.network_block_explorer_label,
CHAIN_ID_LABEL: enContent.app_settings.network_chain_id_label,
REMOVE_NETWORK: enContent.app_settings.remove_network,
CUSTOM_NETWORK_TAB: enContent.app_settings.custom_network_name,
POPULAR_NETWORK_TAB: enContent.app_settings.popular,
Expand Down

0 comments on commit a48f9d6

Please sign in to comment.