Skip to content

Conversation

@vanshikaarora
Copy link
Contributor

Description (required)

Fixes #2644 Extend WelcomeActivityTest

Changes Made

Test swiping the correct number of times and then clicking 'yes' exits WelcomeActivity
Test that on beta clicking the 'skip tutorial' button exits WelcomeActivity
Test we can swipe both ways (i.e. backwards and forwards)

Added the above three tests

Tests performed (required)

Tested betaDebug on vivo 1713 with API level 24.

@codecov-io
Copy link

codecov-io commented Mar 19, 2019

Codecov Report

Merging #2666 into master will increase coverage by 0.06%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #2666      +/-   ##
=========================================
+ Coverage    2.75%   2.81%   +0.06%     
=========================================
  Files         260     258       -2     
  Lines       12430   12376      -54     
  Branches     1125    1111      -14     
=========================================
+ Hits          343     349       +6     
+ Misses      12060   12001      -59     
+ Partials       27      26       -1
Impacted Files Coverage Δ
...ree/nrw/commons/upload/ImageProcessingService.java 84.48% <0%> (-0.27%) ⬇️
...n/java/fr/free/nrw/commons/CommonsApplication.java 0% <0%> (ø) ⬆️
...ons/explore/categories/SearchCategoryFragment.java 0% <0%> (ø) ⬆️
...n/java/fr/free/nrw/commons/auth/LoginActivity.java 0% <0%> (ø) ⬆️
...mmons/contributions/ContributionsListFragment.java 0% <0%> (ø) ⬆️
...e/nrw/commons/location/LocationServiceManager.java 0% <0%> (ø) ⬆️
...e/nrw/commons/di/CommonsDaggerSupportFragment.java 0% <0%> (ø) ⬆️
...a/fr/free/nrw/commons/utils/ImageUtilsWrapper.java 0% <0%> (ø) ⬆️
...w/commons/category/CategoryImagesListFragment.java 0% <0%> (ø) ⬆️
...s/bookmarks/pictures/BookmarkPicturesFragment.java 0% <0%> (ø) ⬆️
... and 25 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3ceaaa9...1ebcd4d. Read the comment docs.

@domdomegg domdomegg self-requested a review March 19, 2019 19:13
Copy link
Member

@domdomegg domdomegg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks so much for adding these tests! I've left some suggestions, but the only thing that must be changed is the statement in ifSkipButtonClicked as that breaks when running tests in the prod build variant and also doesn't test the beta version correctly.

@domdomegg domdomegg changed the title Test welcome[WIP] [WIP] Test welcome Mar 19, 2019
@domdomegg domdomegg changed the title [WIP] Test welcome [WIP] Extend WelcomeActivityTest Mar 19, 2019
@vanshikaarora
Copy link
Contributor Author

as that breaks when running tests in the prod build variant

@domdomegg I could't reproduce this. Can you please share the error report :)

@domdomegg
Copy link
Member

@domdomegg I could't reproduce this. Can you please share the error report :)

You fixed this in your latest commit already :)

Will review and merge later hopefully.

@domdomegg domdomegg self-requested a review March 20, 2019 17:32
@domdomegg domdomegg merged commit fc7399c into commons-app:master Mar 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants