Skip to content

Releases: AdevintaSpain/Barista

Barista has a brand new logo!

17 May 10:19
Compare
Choose a tag to compare

This version fixes the issue #62, related with avoiding autoscrolling when needed. The PR #64 fixes it. The fix has been driven by tests, so it will not happen again 🎉

Totally tested on production!

12 May 08:12
Compare
Choose a tag to compare

After using Barista on InfoJobs, Coches.net, Fotocasa, Vibbo, WorkSí, Next-Visit and some internal Android libraries, we proudly move the library to 1.0.0! 🙌

In addition, this version adds these great features:
#58: Add a version of swipeViewPagerForward() and swipeViewPagerBack() that doesn't need to know the ViewPager's id, to speed up writing tests.
#55: Barista scrolls until the View you're interacting to becomes visible, to speed up writing tests.
#51: Only interacts with visible things. That's useful when you have a ViewPager with the same page again and again: interacting with any view inside the ViewPager will be a hell, cos they will be repeated, as described at #49, #17 and #8.

⚠️ Beware the aliens! This release has breaking changes:
#53: Old BaristaSwipeActions are now called BaristaViewPagerActions. This change has been done to be coherent with the other BaristaActions, that talk about the View that interacts to, not about the behavior of a user.

Fix click on RecyclerView and ListView

03 May 15:40
Compare
Choose a tag to compare
  • Fixes click on RecyclerView when ItemView is wrapped (#48)

Add CheckBox status assertions

18 Apr 13:08
Compare
Choose a tag to compare
// Is the expected checkbox checked?
assertChecked("Checked checkbox");
assertChecked(R.string.checked_checkbox);
assertChecked(R.id.checked_checkbox);

// ...And the other checkbox unchecked?
assertUnchecked("Unchecked checkbox");
assertUnchecked(R.string.unchecked_checkbox);
assertUnchecked(R.id.unchecked_checkbox);

Clear Database Rule and assert repeated views

06 Apr 16:26
Compare
Choose a tag to compare

Accept repeated views (#38)
Clear Database Test Rule (#29)
Introduce clickRecyclerViewItemChild to README.md (#43)

New actions and assertions

31 Mar 10:54
Compare
Choose a tag to compare

Check that EditText has hint #36

assertHint(R.id.edittext, R.string.hint);
assertHint(R.id.edittext, "Hint");

Tap a button of a Recycler's row #32

clickRecyclerViewItemChild(R.id.recycler, 3, R.id.button);
clickRecyclerViewItemChild(R.id.recycler, 3, "Button");

Tap a RadioButton using its position #30

clickRadioButtonPosition(R.id.radiogroup, 42);

FlakyActivityTestRule

21 Mar 15:45
Compare
Choose a tag to compare

We added the FlakyActivityTestRule to replace Espresso's ActivityTestRule, allowing us to use the also new @AllowFlaky and @Repeat annotations.

Scroll that Recycler!

21 Mar 09:20
Compare
Choose a tag to compare

Added BaristaRecyclerViewActions.scrollTo()

Clear that SharedPreferences!

01 Mar 12:11
Compare
Choose a tag to compare

Added the ClearPreferencesRule to ease clearing all SharedPreferences before passing each test

Better sleeps and PermissionGranter

01 Mar 12:11
Compare
Choose a tag to compare
  • Add PermissionGranter to ease devs to work with the permissions dialog
  • Add BaristaSleepActions to ease devs to do a Thread.sleep() in a reliable way for Espresso