mirror of
https://github.com/inaturalist/iNaturalistReactNative.git
synced 2026-05-03 13:13:09 -04:00
Re-arrange deck chairs; enable manual trigger for e2e workflows
This commit is contained in:
1
.github/workflows/e2e_android.yml
vendored
1
.github/workflows/e2e_android.yml
vendored
@@ -1,5 +1,6 @@
|
||||
name: e2e-Android
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
# Android builds require access to several secrets, so Github won't run
|
||||
# those jobs when triggered by pull requests by external developers.
|
||||
|
||||
1
.github/workflows/e2e_ios.yml
vendored
1
.github/workflows/e2e_ios.yml
vendored
@@ -3,6 +3,7 @@
|
||||
##
|
||||
name: e2e-iOS
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches:
|
||||
- 'main'
|
||||
|
||||
@@ -29,20 +29,18 @@ describe( "Add observation without evidence", () => {
|
||||
|
||||
it( "should open app with the observation list screen", async () => {
|
||||
const loginText = element( by.id( "log-in-to-iNaturalist-text" ) );
|
||||
await waitFor( loginText ).toBeVisible().withTimeout( 10000 );
|
||||
await expect( loginText ).toBeVisible();
|
||||
await waitFor( loginText ).toBeVisible( ).withTimeout( 10000 );
|
||||
await expect( loginText ).toBeVisible( );
|
||||
} );
|
||||
|
||||
it( "should navigate to observation add screen on add evidence button pressed", async () => {
|
||||
await waitFor( element( by.id( "add-obs-button" ) ) )
|
||||
.toBeVisible()
|
||||
.withTimeout( 10000 );
|
||||
await element( by.id( "add-obs-button" ) ).tap();
|
||||
await expect( element( by.id( "evidence-text" ) ) ).toBeVisible();
|
||||
await expect(
|
||||
element( by.id( "observe-without-evidence-button" ) )
|
||||
).toBeVisible();
|
||||
await element( by.id( "observe-without-evidence-button" ) ).tap();
|
||||
await waitFor( element( by.id( "new-observation-text" ) ) ).toBeVisible().withTimeout( 10000 );
|
||||
const addObsButton = element( by.id( "add-obs-button" ) );
|
||||
await waitFor( addObsButton ).toBeVisible( ).withTimeout( 10000 );
|
||||
await addObsButton.tap( );
|
||||
await expect( element( by.id( "evidence-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 );
|
||||
} );
|
||||
} );
|
||||
|
||||
Reference in New Issue
Block a user