Releases: AdevintaSpain/Barista
Barista has a brand new logo!
Totally tested on production!
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.
#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
- Fixes click on RecyclerView when ItemView is wrapped (#48)
Add CheckBox status assertions
// 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
New actions and assertions
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
We added the FlakyActivityTestRule
to replace Espresso's ActivityTestRule
, allowing us to use the also new @AllowFlaky
and @Repeat
annotations.
Scroll that Recycler!
Added BaristaRecyclerViewActions.scrollTo()
Clear that SharedPreferences!
Added the ClearPreferencesRule
to ease clearing all SharedPreferences before passing each test
Better sleeps and PermissionGranter
- Add
PermissionGranter
to ease devs to work with the permissions dialog - Add
BaristaSleepActions
to ease devs to do aThread.sleep()
in a reliable way for Espresso