Skip to content

Commit

Permalink
restructure test action
Browse files Browse the repository at this point in the history
  • Loading branch information
cortisiko committed Aug 21, 2024
1 parent 3a6b11f commit 1c5033e
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions e2e/pages/Settings/AdvancedView.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,6 @@ import Gestures from '../../utils/Gestures';
import Matchers from '../../utils/Matchers';

class AdvancedSettingsView {
async tapEthSignSwitch() {
// Scroll to the element
await Gestures.scrollToElement(
this.ethSignSwitch,
this.scrollViewIdentifier,
);

// Wait and tap the element
await Gestures.waitAndTap(this.ethSignSwitch);
}

get scrollViewIdentifier() {
return Matchers.getIdentifier(
AdvancedViewSelectorsIDs.ADVANCED_SETTINGS_SCROLLVIEW,
Expand All @@ -34,6 +23,14 @@ class AdvancedSettingsView {
await Gestures.waitAndTap(this.showFiatOnTestnetsToggle);
}

async tapEthSignSwitch() {
await Gestures.scrollToElement(
this.ethSignSwitch,
this.scrollViewIdentifier,
);
await Gestures.waitAndTap(this.ethSignSwitch);
}

async scrollToShowFiatOnTestnetsToggle() {
await Gestures.scrollToElement(
this.showFiatOnTestnetsToggle,
Expand Down

0 comments on commit 1c5033e

Please sign in to comment.