mirror of
https://github.com/inaturalist/iNaturalistReactNative.git
synced 2025-12-23 22:18:36 -05:00
* (lint) MOB-1063 enforce trailing commas * autofix trailing commas * manually fix newly introduced maxlen violations * add trailing comma convention to i18n build
14 lines
337 B
JavaScript
14 lines
337 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( );
|
|
}
|