Files
iNaturalistReactNative/e2e/sharedFlows/closeOnboarding.js
Amanda Bullington fc69a5a456 Fix: onboarding carousel without screen jumpiness (#2825)
* Don't check for prev crashes or sentinel files on a fresh install

* Make sure we're not accidentally creating a new legacy store on every install

* Revert

* Add splash screen, preload images, show onboarding as react nav modal

* Fix e2e tests
2025-04-08 12:45:45 -07:00

16 lines
388 B
JavaScript

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