mirror of
https://github.com/inaturalist/iNaturalistReactNative.git
synced 2026-01-03 11:28:43 -05:00
* Use fixed header on ObsDetails advanced mode * Remove test for removed component - using react navigation header instead * Remove tests related to ObsDetails header icon; using react navigation * Add testID to react navigation level back button and fix e2e * Terminate app after every e2e test and maybe help flakiness * Rework termination of app --------- Co-authored-by: Johannes Klein <johannes.t.klein@gmail.com>
36 lines
1.3 KiB
JavaScript
36 lines
1.3 KiB
JavaScript
import {
|
|
by,
|
|
device,
|
|
element,
|
|
expect,
|
|
waitFor
|
|
} from "detox";
|
|
|
|
import { iNatE2eAfterEach, iNatE2eBeforeAll, iNatE2eBeforeEach } from "./helpers";
|
|
import closeOnboarding from "./sharedFlows/closeOnboarding";
|
|
|
|
describe( "Signed out user", () => {
|
|
beforeAll( async ( ) => iNatE2eBeforeAll( device ) );
|
|
beforeEach( async ( ) => iNatE2eBeforeEach( device ) );
|
|
afterEach( async ( ) => iNatE2eAfterEach( 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 );
|
|
// } );
|
|
} );
|