Skip to content

Testing nav drawer #661

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed

Conversation

sandarumk
Copy link
Contributor

Few tests are added to test the navigation drawer which is newly implemented

@sandarumk
Copy link
Contributor Author

@misaochan there are some changes to the gradle file which is added to enable espresso ui testing. Please check whether this does not affect any other tests.

@sandarumk
Copy link
Contributor Author

changes related to #586

@@ -24,7 +24,15 @@ dependencies {

testCompile 'junit:junit:4.12'
androidTestCompile "com.android.support:support-annotations:${project.supportLibVersion}"
androidTestCompile 'com.android.support.test.espresso:espresso-core:2.2.2'
// androidTestCompile 'com.android.support.test.espresso:espresso-core:2.2.2'

Copy link
Collaborator

@whym whym May 21, 2017

Choose a reason for hiding this comment

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

Why would you comment it out? It can probably be removed (if it is a dependency to espresso-contrib).

.perform(open());

//test the settings fragment is displayed
onView(withId(R.id.settings_item)).perform(click());
Copy link
Collaborator

Choose a reason for hiding this comment

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

This causes "Error:(40, 27) error: cannot find symbol variable settings_item", if you rebase master. After some recent changes around the drawer, this patch seems to need some revision.

@whym
Copy link
Collaborator

whym commented Jul 3, 2017

@sandarumk Sorry for not coming back to this earlier, but it looks like in the meantime some changes affecting the drawer made the patch obsolete.

I do love the idea of having a test for it. Perhaps you might want to drop this and make a fresh try later. Of course, you are welcome to amend it to accomodate the changes, if you prefer that way. https://www.codacy.com/app/domdomegg/apps-android-commons/pullRequest?prid=661305 has some suggestion about coding style, too.

@neslihanturan
Copy link
Collaborator

If there won't be any revisions ,n a few days, I think we can close this PR.

@misaochan
Copy link
Member

Agreed, closing. Thanks all!

@misaochan misaochan closed this Aug 13, 2017
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.

4 participants