Commit Graph

102 Commits

Author SHA1 Message Date
Amanda Bullington
a99cf212ba Update e2e workflows 2023-10-30 11:16:57 -07:00
Johannes Klein
ba0016365f Crud e2e (#696)
* Update comment

* Scaffold for e2e test

* Upload observation

* Update the observation by adding a comment

* Checking that comment appears

* Delete the observation

* Check that the comment is added succesfully

* Do not invalidate searchObservations query cache after observation deletion

* Update test IDs

* Script to check if e2e test user has observations

* Log out api response

* Increase default test timeout
2023-09-13 13:48:50 +02:00
Johannes Klein
afdd765538 Remove no longer needed model download step 2023-07-19 13:35:49 +02:00
Johannes Klein
abcd3e0fbf Change ios e2e env vars 2023-07-19 13:17:28 +02:00
Johannes Klein
262268029f Use node 18 on Github Actions, same as nvmrc 2023-07-19 12:44:33 +02:00
Johannes Klein
f87f27a53a Rename model 2023-07-18 20:18:13 +02:00
Johannes Klein
5f81c49f85 ARCamera MVP: Basic screen with full screen camera and prediction labels (#684) 2023-07-15 07:53:18 +02:00
Amanda Bullington
cc78f06b04 Add activity indicator to fetch location (#639)
* Add activity indicator to fetch location

* Add e2e location mock (#643)

Adds a mock for fetchUserLocation intended to be used with e2e tests. `MOCK_MODE=e2e` must be in the ENV for this to work.

---------

Co-authored-by: Ken-ichi Ueda <kenichi.ueda@gmail.com>

---------

Co-authored-by: Johannes Klein <johannes.t.klein@gmail.com>
Co-authored-by: Ken-ichi Ueda <kenichi.ueda@gmail.com>
2023-05-25 17:13:31 -07:00
Amanda Bullington
5ee4a433df Add location picker to ObsEdit (#593)
* Crosshairs, location accuracy warnings, text input for location picker

* Add LocationPicker tests

* UI improvements and code refactor into smaller components; get GMaps working

* Add shadows to icons/text boxes

* Use debouncing to avoid map jitter when typing in location

* Show place results & let user pick new location from web api

* Add tests for location picker with remote results

* Add gmaps api key to github actions

* Try adding manifest placeholders for env variable to work in github actions

* Add key to printf in github actions

* Try accessing GMAPS_API_KEY a different way

* Update android e2e env file step

This updates the "Create .env file" step to use printf to print the Google Maps key into a newly created .env file in the GitHub Action runner. Using the same key as in env.example.

* Fix newline

---------

Co-authored-by: Johannes Klein <johannes.t.klein@gmail.com>
2023-04-26 10:51:05 -07:00
Johannes Klein
33a09cec48 Update e2e_android.yml 2023-04-24 21:05:43 +02:00
Johannes Klein
0158086ff1 Remove node modules cache string 2023-04-21 09:19:41 +02:00
Amanda Bullington
fa94ab5b42 ObsEdit - bottom sheets (#570)
* Add KebabMenu to shared components index

* Separate EvidenceList from PhotoCarousel component

* Remove unneeded props from PhotoCarousel

* Create notes bottom sheet

* Fix tests for delete obs sheet

* Add wild status sheet

* Show date from observations uploaded via website

* Move media viewer modal into evidence section

* Fix mock

* Move location fetching into its own hook

* Refactor ObsEdit header; move code into Header component

* Add discard changes sheet

* Styling updates and save changes button

* Add classes to buttons based on evidence/id missing

* Add imprecise location sheet

* Add jest.fn from provider to ObsEdit tests

* Remove fakeTimers from ObsEditWithoutProvider.test.js; minor cleanup

* Show discard obs sheet anytime a user tries to navigate back

* Fixes to bottom sheet backdrop, evidence, add discard changes sheet

* Switch to paper radio buttons instead of checkmarks

* Fix bottom sheet backdrop in android by wrapping with GestureHandlerRootView

* Update bottom sheet for add comment & notes

* Fix test

* Remove fake timer from ObsEdit test to get tests passing

* Force update github actions cache

---------

Co-authored-by: Ken-ichi Ueda <kenichi.ueda@gmail.com>
2023-04-20 17:02:19 -07:00
Johannes Klein
966008dcb7 Add if conditional to the actual e2e test job 2023-03-11 10:56:38 +01:00
Johannes Klein
f8a367ae37 E2e tests also run on pull requests but only when secrets are present (#519)
* E2e action step to test if secrets are given

* Comment out actual build steps

* Revert "Comment out actual build steps"

This reverts commit 02c7dbcb0e.

* Change name

* Update e2e_android.yml

* Run workflows on pull requests

* Remove comment
2023-03-10 18:54:25 +01:00
Johannes Klein
4878fe48a4 Change android e2e location (#441)
* Add command to set specific location to emulator

* Skip steps for testing

* Revert "Skip steps for testing"

This reverts commit e2c2897095.

* Revert "Revert "Skip steps for testing""

This reverts commit 193037889c.

* Update e2e_android.yml

* Update e2e_android.yml

* Update e2e_android.yml

* Update e2e_android.yml

* Update e2e_android.yml

* Update e2e_android.yml

* Revert "Revert "Revert "Skip steps for testing"""

This reverts commit 93a9d6c790.
2023-02-04 13:21:22 +01:00
Ken-ichi Ueda
b30bb955c8 Re-arrange deck chairs; enable manual trigger for e2e workflows 2023-02-01 22:02:14 -08:00
Ken-ichi Ueda
fd9ed26d64 Guess I forgot a line 2023-02-01 14:16:45 -08:00
Ken-ichi Ueda
778a79ba01 Updated ios e2e workflow to use OS-specific npm scripts 2023-02-01 13:44:47 -08:00
Johannes Klein
867baddcab Do not use --legacy-peer-deps for npm in e2e workflows 2023-01-24 10:58:15 +01:00
Johannes Klein
7c4d13580f Add JWT_ANONYMOUS_API_SECRET to workflow 2023-01-17 22:58:14 +01:00
Amanda Bullington
a163e82ef8 Create e2e sign in test (#356)
* Add e2e test to log in a test user

* Add config variables to .env.example

* Add e2e user credentials to .env created for workflow

* Fix newline typo in workflow file

* Change ios e2e to run only on push to main as well

Co-authored-by: Johannes Klein <johannes.t.klein@gmail.com>
2023-01-16 17:49:01 +01:00
Ken-ichi Ueda
f17c440232 Run iOS e2e on push to main 2023-01-13 09:34:53 -08:00
Johannes Klein
441efd5383 Change Android e2e to run on push to main 2023-01-07 22:54:44 +01:00
Johannes Klein
0ea4e1b06c Changed Android e2e to run on release publish only 2023-01-07 10:54:18 +01:00
Johannes Klein
e55fdb3005 Try android e2e CI tests without cleanup flag 2023-01-05 10:20:48 +01:00
Johannes Klein
463765609e Remove cache check for build step 2023-01-02 20:08:19 +01:00
Johannes Klein
65279cb072 Remove caching of build folder on iOS 2022-12-31 12:06:06 +01:00
Johannes Klein
2860cd91a0 Update workflow 2022-12-17 16:34:40 +01:00
Johannes Klein
425f0851f3 Update e2e_ios.yml 2022-12-17 12:46:02 +01:00
Johannes Klein
3d62cd3b1c Update e2e_ios.yml 2022-12-17 12:42:35 +01:00
Johannes Klein
c62e5c161a Update e2e_ios.yml 2022-12-17 10:22:55 +01:00
Johannes Klein
97a3d16eb7 Cache CI app build folder 2022-12-17 09:43:45 +01:00
Johannes Klein
7b9f31a48e Update e2e_ios.yml 2022-12-16 23:34:25 +01:00
Johannes Klein
05bca8dbdd Update e2e_ios.yml 2022-12-16 23:31:45 +01:00
Johannes Klein
2da8c26376 Change e2e ios test to debug config 2022-12-16 23:05:53 +01:00
Johannes Klein
d56c384eb6 Rename workflow files 2022-12-16 15:55:50 +01:00
Johannes Klein
68df54e212 Create .env file in the cloud 2022-12-16 15:50:35 +01:00
Johannes Klein
c48148ad90 Remove cache for build folder 2022-12-16 15:48:59 +01:00
Johannes Klein
abed69d591 Changed comments 2022-12-16 15:46:16 +01:00
Johannes Klein
8d197e8e08 Increase test timeout 2022-12-16 13:51:20 +01:00
Johannes Klein
ef9c28da32 Trying to cache build folder on GitHub 2022-12-16 12:49:49 +01:00
Johannes Klein
67a4d39968 Create keystore for release build 2022-12-15 23:58:13 +01:00
Johannes Klein
3bc04ec692 Update android.yml 2022-12-15 17:39:04 +01:00
Johannes Klein
31fc567a1b Update android.yml 2022-12-15 16:59:34 +01:00
Johannes Klein
8101d100c8 Update android.yml 2022-12-15 16:55:58 +01:00
Johannes Klein
3da1d09b91 Update android.yml 2022-12-15 16:53:15 +01:00
Johannes Klein
5f325f9b6b Update android.yml 2022-12-15 15:58:39 +01:00
Johannes Klein
ffac643eaa Update android.yml 2022-12-15 15:45:18 +01:00
Johannes Klein
72279d6d89 Revert "Update android.yml"
This reverts commit 5fd4b90140.
2022-12-15 15:38:05 +01:00
Johannes Klein
511682f4de Revert "Update android.yml"
This reverts commit 4b907e6a4a.
2022-12-15 15:37:59 +01:00