3279 Commits

Author SHA1 Message Date
Johannes Klein
eb1badd233 Update README.md 2022-12-05 17:17:04 +01:00
Johannes Klein
8e75f9327a Update README.md 2022-12-05 16:14:37 +01:00
Johannes Klein
8c005c47dc Comment out CI workflow 2022-12-05 16:11:53 +01:00
Johannes Klein
8909f6c1c3 Only use CI on pull requests 2022-12-05 16:07:52 +01:00
Johannes Klein
8dc25ff18d Update e2e.yml 2022-12-05 15:12:41 +01:00
Johannes Klein
528138bb0a Update README.md 2022-12-05 15:05:21 +01:00
Johannes Klein
46fdcece25 Update e2e.yml 2022-12-05 14:41:49 +01:00
Johannes Klein
a2ae2c4b27 Update e2e.yml 2022-12-05 14:21:04 +01:00
Johannes Klein
29a72f9c64 Update e2e.yml 2022-12-05 14:13:37 +01:00
Johannes Klein
c0ae9ae6f1 Update e2e.yml 2022-12-05 14:12:00 +01:00
Johannes Klein
3ddd519693 Test on push 2022-12-05 14:06:46 +01:00
Johannes Klein
6b7352f21f Testing e2e on GitHub Actions 2022-12-05 14:06:10 +01:00
Johannes Klein
8f57c5d1bf Add config for debug build 2022-12-05 14:05:32 +01:00
Johannes Klein
8575d7fdc1 Rename scripts 2022-12-05 14:05:05 +01:00
Johannes Klein
74c91c853f Merge branch '250-e2e-init' of https://github.com/inaturalist/iNaturalistReactNative into 250-e2e-init 2022-12-04 18:58:05 +01:00
Johannes Klein
0aab6108d9 Merge pull request #260 from inaturalist/e2e-init
E2e init
2022-12-04 18:57:42 +01:00
Johannes Klein
57142e0fa8 Remove Android configuration, not working 2022-12-04 18:55:36 +01:00
Johannes Klein
7898c826d9 Switch to Release variant for testing 2022-12-04 18:52:39 +01:00
Johannes Klein
29580bba59 Add scripts 2022-12-04 18:51:49 +01:00
Amanda Bullington
b88030eab2 Allow existing id to be edited in ObsEdit (#242)
* Allow editing of existing id; remove unused id buttons; closes #230 and closes #231
* Remove unused text component & update IdentificationSection to tailwind css
* Remove unused obsEdit styles; convert styles to tailwind
* Remove unused bottom modal component and obsedit stylesheet
* Add comments to useEffect for opening local observation; convert realm object to JSON
* ObsEdit loads obs from db only when required
* Use observation update API call for observations already on the server
* Change wasSynced to instance method; only upload unsynced evidence
* Move keyboard aware scroll mock to jest.setup
* Await uploading evidence instead of returning a different response

Co-authored-by: Ken-ichi Ueda <kenichi.ueda@gmail.com>
2022-12-03 15:32:44 -08:00
Johannes Klein
d783a6a4d4 Revert to jasmine2 test-runner for not e2e 2022-12-03 13:33:46 +01:00
Johannes Klein
5bcbf9d505 Create addObservationWithoutData.e2e.js 2022-12-03 13:16:29 +01:00
Johannes Klein
4eecab46d5 Add testIDs 2022-12-03 13:16:23 +01:00
Johannes Klein
8ae7f7199b Add detox configs 2022-12-03 13:16:16 +01:00
Johannes Klein
005bbe8f01 Add detox and jest-circus 2022-12-03 13:16:08 +01:00
Johannes Klein
60e9653767 Update Readme 2022-12-03 13:14:46 +01:00
Johannes Klein
c815f3399c Revert "Create addObservationWithoutData.e2e.js"
This reverts commit b888e7fe25.
2022-12-03 13:14:09 +01:00
Johannes Klein
f5cc15b5de Revert "Add testIDs"
This reverts commit 3daaf2ec3f.
2022-12-03 13:14:06 +01:00
Johannes Klein
01ef8608eb Revert "Add detox configs"
This reverts commit 9a815d7f96.
2022-12-03 13:14:04 +01:00
Johannes Klein
2533f94e08 Revert "Add detox and jest-circus"
This reverts commit 439f1dc994.
2022-12-03 13:13:59 +01:00
Johannes Klein
b888e7fe25 Create addObservationWithoutData.e2e.js 2022-12-03 02:19:40 +01:00
Johannes Klein
3daaf2ec3f Add testIDs 2022-12-03 02:18:45 +01:00
Johannes Klein
9a815d7f96 Add detox configs 2022-12-03 02:18:22 +01:00
Johannes Klein
439f1dc994 Add detox and jest-circus 2022-12-03 02:16:57 +01:00
Johannes Klein
1e6cb70125 Remove fake timers for all tests, await components in ObsEdit test
I enabled jest.useFakeTimers() for all tests in the jest test setup files. I have since learned that it is better to enable it on a test-by-test basis. I have now enabled it globally and fixed the resulting error in the ObsEdit test.
2022-12-02 23:17:48 +01:00
Johannes Klein
33df5a4eb0 Add react-native-gesture-handler test setup file 2022-12-02 23:13:41 +01:00
Johannes Klein
b6ca6444f6 Change order of babel plugins 2022-12-02 14:08:05 +01:00
Amanda Bullington
bb67cf0eeb Fix Android crash on text string in Button component (#249)
* Remove TranslatedText component from Button and pass in translation strings via props
* Fix rendering of bottom sheets
2022-11-30 14:15:51 -08:00
Amanda Bullington
e57ed1fdee Move notes input field above keyboard on focus (#252)
* Move optional notes text field above keyboard on focus
* Fix test with keyboard-aware mock
2022-11-30 14:14:26 -08:00
budowski
36ccd2b29b 178 photo gallery android fetch (#246)
* Changes to support iOS (RCT-Folly related changes)
* #178 - Photo gallery screen - On Android, same page of results is shown again and again while scrolling

Closes #178
2022-11-30 09:29:18 -08:00
Angie
c1e845c620 198 usertext component (#237)
* UserText component. Closes #198.
* Replaced ActivityItem comment body with UserText. Wrote tests for UserText.

Co-authored-by: Ken-ichi Ueda <kenichi.ueda@gmail.com>
2022-11-29 21:49:36 -08:00
Ken-ichi Ueda
5a8e4e3b91 Clean more stuff before building with Fastlane; back to Play Store draft builds for our draft app 2022-11-29 12:56:24 -08:00
Ken-ichi Ueda
f5ab99e37e Redo of workaround for https://github.com/lawnstarter/react-native-picker-select/issues/487 2022-11-29 12:55:40 -08:00
Ken-ichi Ueda
9efe9c3901 v0.1.1+32 v0.1.1+32 2022-11-28 21:05:23 -08:00
budowski
4e5481a607 144 import photo exif (#168)
* #144 - when creating new observation, import first photo EXIF data for location + date
* #144 - usePhotoExif - read partial file data; added testing for usePhotoExif hook
* #144 - import photo exif - use our own react-native-exif-reader library + other fixes (not to automatically fetch location, save original uri)
* Do not save original photo URI in DB, only pass it along to obs edit screen for EXIF parsing
* Upgraded testing library version to support renderHook

Co-authored-by: Ken-ichi Ueda <kenichi.ueda@gmail.com>
2022-11-28 20:58:34 -08:00
Amanda Bullington
cc32d5d785 Test: checkmark is shown when photos are selected (#245)
* Started using the FlatList extraData prop to rerender the list.
* Added an integration test for photo selection state
* More fully-formed default mock for camera-roll; removed other test

Co-authored-by: Ken-ichi Ueda <kenichi.ueda@gmail.com>
2022-11-23 16:46:22 -08:00
Amanda Bullington
c6361b022c Skeleton UI and server results for adding a comment in ObsDetail (#247)
* Show skeleton UI for comment and update with real comment from server
* Update styling in ActivityItem to use tailwind; fix code combining id and comment arrays
* Use tailwind styling in ObsDetails
* Styling updates; remove unneeded code from ObsDetails test
* Show loading wheel when comment submitted; clear comment box when backdrop tapped
* Remove console log
2022-11-23 16:08:22 -08:00
Amanda Bullington
a96e379b09 Standardize headers with react navigation (#243)
* Use react navigation header for photo gallery / album picker
* Use react navigation for group photos header
* Use react nav header for Add ID
* Use react navigation header for ObsEdit
* Fix tests by mocking navigation setOptions
* Show all buttons in camera options modal; remove header from StandardCamera
* Only show obs edit header when observations have loaded

Closes #226
2022-11-23 14:09:17 -08:00
Johannes Klein
47e9916a05 Enable hermes for iOS (#241) 2022-11-14 16:25:09 -08:00
Ken-ichi Ueda
d29800de73 Try not pushing draft releases to Play Store
Also raises exception if changelog missing when uploading to TestFlight.
2022-11-14 15:22:44 -08:00