mirror of
https://github.com/inaturalist/iNaturalistReactNative.git
synced 2026-05-04 13:43:34 -04:00
* 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
16 lines
388 B
JavaScript
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( );
|
|
}
|