Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 07a6a2bf authored by Hyundo Moon's avatar Hyundo Moon
Browse files

Fix BluetoothOppBtEnableActivityTest failure in small screen

Bug: 292162606
Test: atest BluetoothOppBtEnableActivityTest
Change-Id: Ie128f73dba172aaec2f9bd1800922fafcabaef61
parent 2155829d
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -31,6 +31,7 @@ import android.content.Context;
import android.content.Intent;

import androidx.test.core.app.ActivityScenario;
import androidx.test.espresso.action.ViewActions;
import androidx.test.espresso.intent.Intents;
import androidx.test.platform.app.InstrumentationRegistry;

@@ -77,6 +78,9 @@ public class BluetoothOppBtEnableActivityTest {
                mIntent);
        activityScenario.onActivity(
                activity -> activity.mOppManager = mock(BluetoothOppManager.class));
        onView(withText(mTargetContext.getText(R.string.bt_enable_ok).toString()))
                .inRoot(isDialog())
                .perform(ViewActions.scrollTo());
        onView(withText(mTargetContext.getText(R.string.bt_enable_ok).toString())).inRoot(
                isDialog()).check(matches(isDisplayed())).perform(click());
        intended(hasComponent(BluetoothOppBtEnablingActivity.class.getName()));