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

Commit 29499e44 authored by Zemiao Zhu's avatar Zemiao Zhu Committed by Automerger Merge Worker
Browse files

Merge "Deflake ActionCreateDocumentUiTest." into rvc-dev am: 85120da5 am:...

Merge "Deflake ActionCreateDocumentUiTest." into rvc-dev am: 85120da5 am: cd519982 am: 6e249234 am: e51518e6

Change-Id: Idb77424d78b3b3e1ca3302902316f0f227617d3e
parents 718e9ac1 e51518e6
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -57,15 +57,16 @@ public class ActionCreateDocumentUiTest {
    private Context mTargetContext;
    private Context mContext;
    private Bots mBots;
    private UiDevice mDevice;

    @Before
    public void setup() {
        UiDevice device = UiDevice.getInstance(getInstrumentation());
        UiAutomation automation = getInstrumentation().getUiAutomation();

        mDevice = UiDevice.getInstance(getInstrumentation());
        mTargetContext = getInstrumentation().getTargetContext();
        mContext = getInstrumentation().getContext();
        mBots = new Bots(device, automation, mTargetContext, 5000);
        mBots = new Bots(mDevice, automation, mTargetContext, 5000);
    }

    @Test
@@ -84,6 +85,7 @@ public class ActionCreateDocumentUiTest {

        mBots.main.setDialogText(fileName);
        mBots.main.clickSaveButton();
        mDevice.waitForIdle();

        Instrumentation.ActivityResult activityResult = mRule.getActivityResult();