Satisfy the linter.

This commit is contained in:
akwizgran
2023-10-20 11:02:15 +01:00
parent e79487599b
commit a0e2458568

View File

@@ -62,7 +62,7 @@ public class PromoVideoTest extends ScreenshotTest {
new ActivityScenarioRule<>(SplashScreenActivity.class); new ActivityScenarioRule<>(SplashScreenActivity.class);
@Inject @Inject
protected ContactManager contactManager; ContactManager contactManager;
private OverlayView overlayView; private OverlayView overlayView;
@@ -212,7 +212,7 @@ public class PromoVideoTest extends ScreenshotTest {
} }
// click on new contact // click on new contact
doItemClick(withId(R.id.recyclerView), 0); doItemClick(withId(R.id.recyclerView));
sleep(DELAY_MEDIUM); sleep(DELAY_MEDIUM);
@@ -263,15 +263,14 @@ public class PromoVideoTest extends ScreenshotTest {
.perform(click()); .perform(click());
} }
private void doItemClick(final Matcher<View> viewMatcher, int pos) private void doItemClick(final Matcher<View> viewMatcher)
throws InterruptedException { throws InterruptedException {
if (isFilming) { if (isFilming) {
onView(viewMatcher).perform( onView(viewMatcher).perform(
actionOnItemAtPosition(pos, visualClick(overlayView))); actionOnItemAtPosition(0, visualClick(overlayView)));
sleep(500); sleep(500);
} }
onView(viewMatcher).perform( onView(viewMatcher).perform(actionOnItemAtPosition(0, click()));
actionOnItemAtPosition(pos, click()));
} }
private void closeKeyboard(final Matcher<View> viewMatcher) private void closeKeyboard(final Matcher<View> viewMatcher)