mirror of
https://github.com/inaturalist/iNaturalistReactNative.git
synced 2026-01-16 17:59:10 -05:00
* Add a cameraZoomRange default * Small detox version bump * Add a mocked camera with a take photo button * An e2e mock for the computer vision plugin predicting a frame * Mock taking a photo by loading the first photo from the CameraRoll Closes #1981
18 lines
719 B
JavaScript
18 lines
719 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 power user mode
|
|
const powerUserRadioButton = element( by.id( "all-observation-option" ) );
|
|
await waitFor( powerUserRadioButton ).toBeVisible().withTimeout( 10000 );
|
|
await powerUserRadioButton.tap();
|
|
}
|