Files
iNaturalistReactNative/e2e/sharedFlows/closeOnboarding.js
Ryan Stelly b78be9243d lint rule & autofix for "trailing comma" (#3299)
* (lint) MOB-1063 enforce trailing commas

* autofix trailing commas

* manually fix newly introduced maxlen violations

* add trailing comma convention to i18n build
2025-12-22 20:17:13 -06:00

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( );
}