Skip to content
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

Add a method to click a radio button by position #42

Merged
merged 3 commits into from
Mar 31, 2017

Conversation

rocboronat
Copy link
Member

Here it comes! @Sloy as I needed a place to add Matchers, I used your class HelperMatchers at #38 . So, you will just add a method to that class if this PR is merged faster than yours :·)

By the way, the matcher this PR adds could be very useful for other tasks at Barista.

@rocboronat rocboronat changed the title Add methods to select a radio button by position Add a method to click a radio button by position Mar 30, 2017
@Test
public void checkRadioButtonsByPosition_firstItem() {
clickRadioButtonPosition(R.id.radiogroup, 0);
assertDisplayed("" + R.id.first_item);
Copy link
Member

Choose a reason for hiding this comment

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

Why this assertDisplayed and this concatenation?

Copy link
Member Author

Choose a reason for hiding this comment

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

It's the same way we're checking that the ID of that item has been clicked. If you have a better idea... we could implement it in another PR, and change other methods as well :·D

Copy link
Member

Choose a reason for hiding this comment

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

Nah

@rocboronat rocboronat merged commit d203542 into master Mar 31, 2017
@rocboronat rocboronat deleted the radiobutton-by-position branch March 31, 2017 09:54
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