From fd144d255f1040abbbf5bd4ee47ba1e9ac43133a Mon Sep 17 00:00:00 2001 From: Amanda Bullington Date: Thu, 26 Dec 2024 18:24:40 -0800 Subject: [PATCH] Fix e2e tests by adding advanced user toggle --- e2e/sharedFlows/switchPowerMode.js | 4 ++++ src/components/Settings/Settings.js | 1 + 2 files changed, 5 insertions(+) diff --git a/e2e/sharedFlows/switchPowerMode.js b/e2e/sharedFlows/switchPowerMode.js index 6cda003d8..6a07b3a31 100644 --- a/e2e/sharedFlows/switchPowerMode.js +++ b/e2e/sharedFlows/switchPowerMode.js @@ -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 ); diff --git a/src/components/Settings/Settings.js b/src/components/Settings/Settings.js index e9b8ffb0c..c8ea5c11b 100644 --- a/src/components/Settings/Settings.js +++ b/src/components/Settings/Settings.js @@ -261,6 +261,7 @@ const Settings = ( ) => { setIsDefaultMode( false )}