Files
iNaturalistReactNative/e2e/signedOut.e2e.js
budowski 6cbfcc5be7 Fix #2572 - New design for MyObservations - default mode, logged out,… (#2650)
* Fix #2572 - New design for MyObservations - default mode, logged out, no observations

* Fixed tests

* Update close onboarding part of e2e tests

* Update sign-in for e2e

* Update loadTranslations.js

---------

Co-authored-by: Johannes Klein <johannes.t.klein@gmail.com>
2025-02-07 10:09:54 +01:00

35 lines
1.3 KiB
JavaScript

import {
by,
device,
element,
expect,
waitFor
} from "detox";
import { iNatE2eBeforeAll, iNatE2eBeforeEach } from "./helpers";
import closeOnboarding from "./sharedFlows/closeOnboarding";
describe( "Signed out user", () => {
beforeAll( async ( ) => iNatE2eBeforeAll( device ) );
beforeEach( async ( ) => iNatE2eBeforeEach( device ) );
it( "should start at My Observations with log in text", async () => {
await closeOnboarding( );
const loginText = element( by.id( "use-iNaturalist-intro-text" ) );
await waitFor( loginText ).toBeVisible( ).withTimeout( 10000 );
await expect( loginText ).toBeVisible( );
} );
// it( "should add an observation without evidence", async () => {
// const addObsButton = element( by.id( "add-obs-button" ) );
// await waitFor( addObsButton ).toBeVisible( ).withTimeout( 10000 );
// await addObsButton.tap( );
// await expect( element( by.id( "identify-text" ) ) ).toBeVisible();
// const obsWithoutEvidenceButton = element( by.id( "observe-without-evidence-button" ) );
// await expect( obsWithoutEvidenceButton ).toBeVisible( );
// await obsWithoutEvidenceButton.tap( );
// await waitFor( element( by.id( "new-observation-text" ) ) )
// .toBeVisible( ).withTimeout( 10000 );
// } );
} );