Files
iNaturalistReactNative/e2e/signedOut.e2e.js
Johannes Klein 16018e6998 1312 e2e experiments (#1320)
* Bump detox

* Update detox

* Disable one test for now

* Bump detox

* Increase test timeouts

* Collect more logs

* Increase run timeout

* Comment

* Increase timeout

* Replace password autofill workaround

* Move workaround after launchApp

* Upgrade github actions workflows

* Forgot one action

* Update test.yml

* Testing concurrency

* Use concurrency for e2e as well

* Remove previous concurrency code

* Testing different Slack action

* Change slack msg

* Try different msg

* Revert "Try different msg"

This reverts commit ddaad331d1.

* Revert "Change slack msg"

This reverts commit 852204b074.

* Revert "Testing different Slack action"

This reverts commit fb072e65e3.

* Testing some more notify

* Testing notification

* Revert "Testing notification"

This reverts commit 974dfcb32f.

* Revert "Testing some more notify"

This reverts commit 39b3d668e2.
2024-03-28 23:41:40 +01:00

33 lines
1.2 KiB
JavaScript

import {
by,
device,
element,
expect,
waitFor
} from "detox";
import { iNatE2eBeforeAll, iNatE2eBeforeEach } from "./helpers";
describe( "Signed out user", () => {
beforeAll( async ( ) => iNatE2eBeforeAll( device ) );
beforeEach( async ( ) => iNatE2eBeforeEach( device ) );
it( "should start at My Observations with log in text", async () => {
const loginText = element( by.id( "log-in-to-iNaturalist-button.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 );
// } );
} );