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

Commit 85120da5 authored by Zemiao Zhu's avatar Zemiao Zhu Committed by Android (Google) Code Review
Browse files

Merge "Deflake ActionCreateDocumentUiTest." into rvc-dev

parents fb4c0603 0c6da98e
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();