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

Commit c873cf73 authored by Sahana Rao's avatar Sahana Rao Committed by Automerger Merge Worker
Browse files

Wake up screen before starting the test am: 25750e5d

parents c2e5d967 25750e5d
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -29,6 +29,8 @@ import android.content.pm.ActivityInfo;
import android.graphics.Paint;
import android.os.Build;
import android.os.ParcelFileDescriptor;
import android.support.test.uiautomator.UiDevice;
import android.view.KeyEvent;

import androidx.fragment.app.FragmentManager;
import androidx.test.filters.LargeTest;
@@ -75,6 +77,10 @@ public class DialogUiTest {
        mFileActivityIntent = new Intent(Intent.ACTION_OPEN_DOCUMENT_TREE);
        mFragmentManager = mActivityTestRule.getActivity().getSupportFragmentManager();
        mScreenDensitySession = new ScreenDensitySession();

        final UiDevice device = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation());
        device.pressKeyCode(KeyEvent.KEYCODE_WAKEUP);
        device.pressKeyCode(KeyEvent.KEYCODE_MENU);
    }

    @After