mirror of
https://github.com/inaturalist/iNaturalistReactNative.git
synced 2026-06-18 12:41:54 -04:00
Move the Save button press
This commit is contained in:
@@ -141,6 +141,10 @@ export async function navigateToSuggestionsViaAICameraFromMyObs() {
|
||||
await navigateToAICameraFromMyObs( );
|
||||
await takeAICameraPhotoAndOpenSuggestions( );
|
||||
}
|
||||
async function pressObsEditSaveButton() {
|
||||
await actor.press( await screen.findByTestId( "ObsEdit.saveButton" ) );
|
||||
}
|
||||
/** Saves on ObsEdit, confirming warning sheets when they appear, then waits for My Obs. */
|
||||
export async function saveObsEditObservation( options = {} ) {
|
||||
await pressObsEditSaveButton();
|
||||
}
|
||||
|
||||
@@ -176,7 +176,6 @@ describe( "MyObservations -> ObsEdit no evidence -> MyObservations", ( ) => {
|
||||
await waitForDisplayedText( /1 observation uploaded/ );
|
||||
await pressButtonByLabel( /Add observations/ );
|
||||
await pressButtonByLabel( /Observation with no evidence/ );
|
||||
await pressButtonByText( /SAVE/ );
|
||||
// missing evidence sheet pops up here, so need to press SAVE twice
|
||||
await pressButtonByText( "OK" );
|
||||
await pressButtonByText( /SAVE/ );
|
||||
|
||||
Reference in New Issue
Block a user