Skip to content
This repository has been archived by the owner on Apr 17, 2021. It is now read-only.

Commit

Permalink
Remove Pocket check from PinTileTests (#3047)
Browse files Browse the repository at this point in the history
  • Loading branch information
st3fan authored Feb 26, 2021
1 parent 67b451f commit 1fc4bf5
Showing 1 changed file with 1 addition and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,20 +67,7 @@ public void unpinTileFromContextMenu() {
final Locale currentLocale = LocaleManager.getInstance()
.getCurrentLocale(mActivityTestRule.getActivity());

final boolean pocketIsDisplayed = currentLocale.getLanguage().equals("en");
// TODO it would be better to condition this on view visibility, but I'm not sure
// how to do that here.
if (pocketIsDisplayed) {
// Navigate down to pinned tiles, to ensure that they are on screen. This
// is important because some of our tests are run on small devices, where
// not doing this can cause errors
mDevice.pressDPadDown();
mDevice.pressDPadDown();
} else {
// The pocket channel is only displayed in EN locales, so elsewhere we only
// need to nav down once.
mDevice.pressDPadDown();
}
mDevice.pressDPadDown();

onView(withText(R.string.homescreen_unpin_tutorial_toast))
.inRoot(withDecorView(not(is(mActivityTestRule.getActivity().getWindow().getDecorView()))))
Expand Down

0 comments on commit 1fc4bf5

Please sign in to comment.