Files
iNaturalistReactNative/e2e/sharedFlows/closeOnboarding.js
Johannes Klein 3c04df39a3 Enable New Architecture (#3111)
* Update gradle.properties

* Update Podfile

* Update react-native-mmkv

* Update Podfile.lock

* Delete useObservationsUpdatesWhenFocused.test.js

* Update closeOnboarding.js

* Fix failing button tap in e2e tests

* Create react-native-sensitive-info+6.0.0-alpha.9.patch

* Update bottom-sheets

* Refactor e2e timeout to file-wide const

* Remove check that fails

* Check for entire list item instead of comments count

* Longer delay to wait for observation deletion to make UI disappear
2025-09-27 08:28:13 -06:00

14 lines
336 B
JavaScript

import {
by,
element,
waitFor
} from "detox";
const VISIBILITY_TIMEOUT = 10_000;
export default async function closeOnboarding( ) {
const closeOnboardingButton = element( by.label( "Close" ) );
await waitFor( closeOnboardingButton ).toBeVisible( ).withTimeout( VISIBILITY_TIMEOUT );
return closeOnboardingButton.tap( );
}