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

Commit e51518e6 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

Change-Id: I558e16a71f291d6c384a86b6ea2ddd5c05da62ff
parents 09964b6b 6e249234
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();