mirror of
https://github.com/inaturalist/iNaturalistReactNative.git
synced 2026-05-06 06:35:57 -04:00
* Update user-facing terminology from gallery to photo library * Update terminology for devs to make the user-facing change easier to remember * Update snapshots
22 lines
999 B
JavaScript
22 lines
999 B
JavaScript
import {
|
|
by, element, waitFor
|
|
} from "detox";
|
|
|
|
export default async function switchPowerMode() {
|
|
const drawerButton = element( by.id( "OPEN_DRAWER" ) );
|
|
await waitFor( drawerButton ).toBeVisible().withTimeout( 10000 );
|
|
await drawerButton.tap();
|
|
// Tap the settings drawer menu item
|
|
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-options" ) );
|
|
await waitFor( powerUserRadioButton ).toBeVisible().withTimeout( 10000 );
|
|
await powerUserRadioButton.tap();
|
|
}
|