Commit graph

263 commits

Author SHA1 Message Date
Ayan Sarkar
4a69bc55cd
Unit Tests for LocationPickerActivity (#4830)
* LocationPickerActivityUnitTests.kt class created

* Unit tests for LocationPickerActivity

* Unit tests for LocationPickerActivity

* Added verify

* verify added

* Minor changes

* Covered more lines

* Covered more lines

* addCredits test added
2022-02-20 11:37:32 +05:30
Arin Modi
68a0400b9f
Fixed #4793 : Remove the need to tap "Next" again (#4833)
* Fixed #4793 : Remove the need to tap "Next" again

* Fixed #4793 : Remove the need to tap "Next" again

* Fixed #4793 : Remove the need to tap "Next" again, Added Changes
2022-02-19 16:44:44 +09:00
Madhur Gupta
ecb43faef5
Add BookmarkListRootFragment Unit Tests (#4822) 2022-02-18 16:19:24 +10:00
Madhur Gupta
2fc33b0299
Add ZoomControllers Unit Tests (#4823)
* Add MultiPointerGestureDetector Unit Tests

* Add TransformGestureDetector Unit Tests
2022-02-18 16:19:17 +10:00
Madhur Gupta
52bdb56fb2
Add WikiAccountAuthenticator Unit Tests (#4827) 2022-02-18 16:19:11 +10:00
Madhur Gupta
9205f37605
Run Instrumentation tests and generates unified code coverage (#4828)
* Run instrumentation tests on CI and generate unified coverage report

* Fix ci

* Fix failing tests and use mac machine for HAXM

* Fix failing tests

* Fix coverage failure

* Try with ubuntu latest

* Change API level to 23

* Fix Failing Test

* Add prod APK generator workflow back
2022-02-18 16:18:29 +10:00
Madhur Gupta
01904bccdf
Add CustomOkHttpNetworkFetcher Unit Tests (#4826) 2022-02-17 17:06:36 +10:00
Arin Modi
863477aa02
Fixed 4794 : Added a functionality of remembering zoom level on map (#4817)
* Fixed 4794 : Added a functionality of remembering zoom level on map

* Added Required Changes

* Added Required Changes

* Added Required Changes

* Added Required Changes

* Added Required Tests for the RememberZoomLevel
2022-02-17 15:52:48 +09:00
Devarsh Mavani
755b216507
Show user current location (#4825) 2022-02-16 23:13:23 +09:00
Ayan Sarkar
27e3f20ba2
Fixes 4539 : When Wikidata has no description showing instance_of's label as a description (#4799)
* Showing instance_of's name as a description

* Indentation fixed

* DepictsClient Test added
2022-02-16 14:19:27 +09:00
Devarsh Mavani
c2bc5b4f23
Show Last Known Location in LocationPickerActivity (#4816)
* Show Last Known Location in LocationPickerActivity

* Removed extra empty line

* Added tests

* Added tests

* Added tests

* Added tests

* Added tests

* Added tests

* Added tests
2022-02-16 00:44:46 +05:30
Madhur Gupta
458024bdee
Update MoreBottomSheetFragment Unit Tests (#4812)
* Update MoreBottomSheetFragment Unit Tests

* Fix failing tests
2022-02-15 19:40:34 +10:00
Madhur Gupta
fd0dbf4cfd
Add AccountUtil Unit Tests (#4814) 2022-02-15 19:40:13 +10:00
Madhur Gupta
dcf3aa8670
Add some more tests for NearbyParentFragment (#4815) 2022-02-15 19:40:03 +10:00
Madhur Gupta
272f59b217
Add tests for CommonsAppAdapter (#4818)
* Add tests for CommonsAppAdapter

* Remove robolectric dependency
2022-02-15 19:39:50 +10:00
Madhur Gupta
092079986a
Add UploadMediaDetailAdapter Unit Tests (#4819) 2022-02-15 19:36:31 +10:00
Ayan Sarkar
15fa93e8d0
Description and thumbnail is showing for the categories that are associated with Wikidata (#4803)
* Depiction.commons categories showing with description and thumbnail

* Test added

* Test added
2022-02-14 19:45:59 +09:00
Madhur Gupta
7afd0e843b
Add ExploreFragment Unit Tests (#4809) 2022-02-13 16:28:56 +10:00
Madhur Gupta
bababe757e
Add ExploreListRootFragment Unit Tests (#4810) 2022-02-13 16:25:15 +10:00
Madhur Gupta
aab0bc1b36
Add UploadRepository Unit Tests (#4791) 2022-02-09 01:33:16 +10:00
Madhur Gupta
90b8d8c62e
Add CoordinateEditHelper Unit Tests (#4796) 2022-02-09 01:31:01 +10:00
Madhur Gupta
ebcbc6add3
Add DescriptionEditHelper Unit Tests (#4798) 2022-02-09 01:30:37 +10:00
RISHAV GUPTA
9c27f8510d
small changes (#4789) 2022-02-07 23:03:26 +09:00
Ayan Sarkar
0e4755301e
Nearby tab accessible without GPS (#4771)
* Nearby accessible without GPS

* Java doc added

* Added NearbyParentFragment test

* Test added

* merged two method and tests updates
2022-02-05 21:16:08 +05:30
Ayan Sarkar
e135fea20d
Fixes 1848 : Option for adding location for those pictures which have no location (#4755)
* Location wizard

* Location wizard

* Minor fix

* message changed

* Test fail fixed

* Test fail fixed

* Test fail fixed

* last location triggered

* last location added

* Some test added

* Java docs added

* More java docs added
2022-02-05 09:56:59 +09:00
Madhur Gupta
ff8f067841
Add Unit Tests for CategoryEditSearchRecyclerViewAdapter (#4775)
* Add Unit Tests for CategoryEditSearchRecyclerViewAdapter

* Use mock context instead of robolectric context
2022-02-02 16:24:32 +10:00
Madhur Gupta
54676ba0d7
Add DescriptionEditActivity Unit Tests (#4773)
* Add DescriptionEditActivity Unit Tests

* Add assertion and verifications
2022-02-02 16:15:55 +10:00
Madhur Gupta
85d309e7eb
Add ReviewControllerTest (#4769)
* Add ReviewControllerTest

* Fix failing build

* Add test to cover more lines

* Add assertion and verifications
2022-02-02 16:14:39 +10:00
Madhur Gupta
9e38c33650
Add some more tests for SearchActivity (#4780) 2022-02-01 19:26:13 +10:00
Madhur Gupta
d77ae8e582
Add some more tests for NearbyController (#4778) 2022-02-01 19:25:49 +10:00
Ayan Sarkar
92957f4204
Displaying Category image and Description (#4531)
* API call done

* API call

* Image implementation done

* Gradle

* Java docs and code convention

* Description added

* Refactoring Category

* Refactoring Category

* Refactoring Category

* Description and thumbnail issue fixed

* Description and thumbnail issue fixed

* Minor issue fixed

* Minor issue fixed

* Server changed

* Logo changed

* Change in structure

* Fixed failed tests

* Fixed Test failed

* Optimized imports

* Dialog can't be dismissed

* Dialog can't be dismissed

* Resolved Conflicts

* UI fixed

* Added description and thumbnail in local DB

* Added description and thumbnail in local DB

* Test fixed

* Added

* Updated with latest master

* Test Updated with latest master

* Issue fixed

* Revert gradle changes

* Revert gradle changes

* Update gradle-wrapper.properties

* Require Api removed
2022-01-20 15:19:57 +09:00
Ayan Sarkar
0914eeea53
Fixed #4532 Items media in beta version are showing now (#4551)
* logs

* Issue resolved

* Logs removed

* Beta working

* Production GET call only for fetch images from depicted item

* Code convention maintained

* Code convention maintained

* Test resolved

* Java Docs added

* Quotes added
2022-01-19 18:10:55 +03:00
Pratham Pahariya
06a347eee1
Fixes #4543 - Language selection: Search (#4744)
* initial changes

* add search feature for selecting language

* add search feature for selecting language

* upload issue fix

* minor improvement

* added test and updated settings language selection ui

Co-authored-by: Pratham2305 <Pratham2305@users.noreply.github.com>
2021-12-31 19:33:36 +09:00
Ayan Sarkar
38ed364423
Added bookmark Wikidata items option (#4515)
* classes

* Almost done

* All done but build fail

* All done but build fail

* Modifications

* Modifications

* Fixed

* string resource

* minor change

* Maintained code conventions

* Moving

* Exception handled

* id name changed

* Test fail fixed

* Bookmark is available from other activities

* Test fail fixed

* Documentation error fixed

* Test added

* Revert Project_Default.xml

* Minor Change

* Revert changes
2021-12-28 20:15:09 +09:00
KhyatiSaini
d38c3f1427
unformatted search text field for depicts and categories search field of upload wizard (#4724)
* unformatted search text field for depicts and categories search field of upload wizard

* fix tests by declaring search text field of type PasteSensitiveTextInputEditText
2021-12-17 14:02:58 +03:00
Ashish
a0ff15cdc2
Added advanced query support in Nearby (#4714)
* Added feature for advanced query options in Nearby

* Fix unit-tests coverage

* wip-tests

* Added log to identify if the nearby request is via an advanced query

* Rolledback test-dependency updates

* Fix tests

* build fix

* Added basic tests for relevant method in OkHttpJsonApiClient & NearbyController

* Added NearbyParentFragmentPresenter Tests

* Added AdvancedQueryFragment Unit Tests

* Added more tests for NearbyParentFragmentPresenter

* Reset ContributionsFragment with Upstream

* Overload method loadNearbyPlaces for CustomQuery

* Added more tests

* Added more tests

* Fixed tests for NearbyParentFragmentPresenter
2021-12-14 01:41:33 +10:00
Prince kushwaha
d4c7ec3a2e
added ReviewImageFragment Unittest (#4413)
* added ReviewImageFragment Unittest

* fix Unit test
2021-12-09 16:24:08 +03:00
Madhur Gupta
d1bf6d0e1d
Add CommonPlaceClickActions Unit Tests (#4674) 2021-12-06 23:28:58 +03:00
Ayan Sarkar
0269894c64
Fix 4615: Option for editing caption and description (#4672)
* DescriptionEditHelper implemented

* Description extracted

* Description editable

* No description condition handled

* Code cleanup

* Added javadocs

* toolbar added

* API call done

* Caption edit available

* Progress dialog added

* Log

* Problem with ButterKnife

* Caption is editable

* Removed unused import

* Manifest file reverted

* Manifest file reverted

* Manifest file reverted

* View binding added

* Post operation test added

* Java docs added

* Java docs added

* MediaDetailFragment unit tests added

* Test added
2021-12-06 22:50:54 +03:00
Madhur Gupta
5535353480
Add RecentSearchesFragment Unit Tests (#4675) 2021-11-06 12:57:23 +03:00
codingtosh
55c0b07ebf
[Contributions-Tab] Scroll to top on NavBar Button Pressed (#4668)
* [Contributions-Tab] Scroll to top on NavBar Button Pressed

On NavBar Contributions Button pressed, if already on the Contributions tab,
scroll to the top of the recyclerView in ContributionsListFragment.

* [UnitTest][Contributions-Tab] Scroll to Top on NavBar Button Pressed
2021-10-27 19:56:16 +05:30
Ashish
88b21a678e
Fixes #3389 - Show User profiles (#4678)
* Fixes #3389 - Show  User profiles

* Don't show dummy achievements data - show data only when loaded
2021-10-25 23:40:08 +03:00
Madhur Gupta
7ce80aa804
Add DepictsFragment Unit Tests and update tests dependencies (#4688)
* Add DepictsFragment Unit Tests and update tests dependencies

* Attempt to fix CI
2021-10-25 23:31:59 +03:00
dado1111
6649da88a5
Clicking "More" on tabLayout caused it to be displayed on toolbar (in any other language than English) (#4666)
* Changed hardcoded "More" to getStrings(R.string.more) for Unlogged user
- MainActivity toolbar showed "More" when clicked on More options
   in other language than English

* Changed hardcoded "More" to getStrings(R.string.more) for Logged user
- MainActivity toolbar showed "More" when clicked on More options
   in other language than English

* Added test for: MainActivity.setUpPager
2021-10-17 13:54:18 +05:30
BashCache
ba85958eda
Changed import statements from junit.framework to org.junit (#4650)
* Changed import statements from junit.framework to org.junit

* Replced deprecated assertequals for 2 doubles by adding a third parameter delta. Used hamcrest.MatcherAssert instead of junit.Assert
2021-10-14 23:18:29 +03:00
Madhur Gupta
a82745d07a
Ignore failing test (#4646) 2021-09-24 00:21:03 +05:30
Madhur Gupta
bd7fea8fa2
Add UploadActivity Unit Tests (#4636)
* Add UploadActivity Unit Tests

* Fix failing issue
2021-09-20 17:02:06 +10:00
Madhur Gupta
388e8286bc
Add LeaderboardFragment Unit Tests (#4635)
* Add LeaderboardFragment Unit Tests

* Add LeaderboardListAdapter Unit Tests
2021-09-20 17:01:54 +10:00
Madhur Gupta
e212caf30e
Add SettingsFragment Unit Tests (#4634)
* Add more Unit Tests for SettingsActivity

* Add SettingsFragment Unit Tests
2021-09-20 17:00:53 +10:00
Madhur Gupta
121119a358
Add some more Nearby Unit Tests (#4633) 2021-09-20 17:00:36 +10:00