Commit Graph

29 Commits

Author SHA1 Message Date
Ryan Stelly
8f97ae197f MOB-936 introduce new Android CI and Maestro smoke test (#3217)
* MOB-936 introduce new Android CI and Maestro smoke test

* Potential fix for code scanning alert no. 30: Workflow does not contain permissions

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>

* remove branch exception to cache write rule

* delete unused new share flow

* add run to reintroduce workflow

* switch to -m runner for build

* redisable run on push

* add comments and update readme for changes

---------

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2025-12-10 12:45:59 -06:00
Johannes Klein
bad9c5a4d8 Add firebase dependency, and basic logging (#3127)
* Update package.json

* Update AppDelegate.mm

* Update Podfile

* Update .gitignore

* Update link-inat-model-files.sh

* Add plist file to project

* Update project.pbxproj

* Add analytics package

* Update project.pbxproj

* Update PrivacyInfo.xcprivacy

* Basic screen tracking

* Basic button press logging to firebase

* Update package-lock.json

* Update Podfile.lock

* Add Android setup

* Update .gitignore

* Add analytics mock

* Ignore rubocop warning here

* Create GoogleService-Info.example.plist

* Create google-services.example.json

* Add instructions to set up Firebase configs

* Update e2e_ios.yml

* Update e2e_android.yml

* Better plural

* Use specific XCode version in e2e CI

* Update GoogleService-Info.example.plist

* Revert "Update GoogleService-Info.example.plist"

This reverts commit 0bc0ed4862.

* We need an actual real app id or we get a crash during app start

* My bad, we do need both files for building

* Also set API key

* Add comments

* Add comment

* Update Podfile.lock

* Revert "Use specific XCode version in e2e CI"

This reverts commit cbd63d1b5d.
2025-10-16 13:15:10 +02:00
Johannes Klein
85832d8464 Use node v22 also when building for e2e in CI (#3036)
* Use node v22 also in CI

We want to test the app under the same build conditions as a release build would be made with.

* Update e2e_android.yml
2025-07-30 14:30:04 +02:00
Amanda Bullington
b7bc075f22 Fix: Add a step to rebuild *native* modules after restoring node cache (#2831)
* Add a step to rebuild *native* modules after restoring node cache

* Fix comment

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Fix comment

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Fix comment

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-04-04 12:20:29 -07:00
Johannes Klein
c378c8894d Replace small example models, and add example geomodel (#2644)
* Update env.example

* Update model download script

* Delete geomodel.placeholder

* Update README.md

* Update e2e_ios.yml

* Update vision-plugin

* Accept android flavor for downloading models

* Change Android e2e env

* Replace Android e2e model download step

* Update comment

* Move Java setup step

* Revert "Move Java setup step"

This reverts commit d8ca01a176.
2025-02-03 12:16:22 +01:00
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
Johannes Klein
7e5a376394 Disable Android e2e except for workflow_dispatch (#1318) 2024-03-27 11:11:53 -07:00
Ken-ichi
83bc3f95cb Try to test server availability before trying e2e tests (#1264) 2024-03-07 17:10:30 -08:00
Johannes Klein
8777cff62e Use actual var in for the anonymous secret in e2e tests (#1260) 2024-03-07 09:30:36 +01:00
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