Skip to content

Commit

Permalink
Fix e2e tests by adding advanced user toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
albullington committed Dec 27, 2024
1 parent 7e55957 commit fd144d2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions e2e/sharedFlows/switchPowerMode.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ export default async function switchPowerMode() {
const settingsDrawerMenuItem = element( by.id( "settings" ) );
await waitFor( settingsDrawerMenuItem ).toBeVisible().withTimeout( 10000 );
await settingsDrawerMenuItem.tap();
// Tap the settings radio button for advanced interface mode
const advancedInterfaceRadioButton = element( by.id( "advanced-interface-option" ) );
await waitFor( advancedInterfaceRadioButton ).toBeVisible().withTimeout( 10000 );
await advancedInterfaceRadioButton.tap();
// Tap the settings radio button for power user mode
const powerUserRadioButton = element( by.id( "all-observation-option" ) );
await waitFor( powerUserRadioButton ).toBeVisible().withTimeout( 10000 );
Expand Down
1 change: 1 addition & 0 deletions src/components/Settings/Settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ const Settings = ( ) => {
</View>
<View className="mt-4">
<RadioButtonRow
testID="advanced-interface-option"
smallLabel
checked={!isDefaultMode}
onPress={( ) => setIsDefaultMode( false )}
Expand Down

0 comments on commit fd144d2

Please sign in to comment.