From 1fc4bf5c488a96a27d4b90d8882710801cd53719 Mon Sep 17 00:00:00 2001 From: Stefan Arentz Date: Fri, 26 Feb 2021 14:20:39 -0500 Subject: [PATCH] Remove Pocket check from PinTileTests (#3047) --- .../tv/firefox/ui/screenshots/PinTileTests.java | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/app/src/androidTest/java/org/mozilla/tv/firefox/ui/screenshots/PinTileTests.java b/app/src/androidTest/java/org/mozilla/tv/firefox/ui/screenshots/PinTileTests.java index 9d0b545722..fc6714d025 100644 --- a/app/src/androidTest/java/org/mozilla/tv/firefox/ui/screenshots/PinTileTests.java +++ b/app/src/androidTest/java/org/mozilla/tv/firefox/ui/screenshots/PinTileTests.java @@ -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()))))