Commit Graph

20 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
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
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
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
d56c384eb6 Rename workflow files 2022-12-16 15:55:50 +01:00