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

Commit 53012336 authored by Aditya's avatar Aditya
Browse files

Fix for ActionCreateDocumentsUiTest#testActionCreate_TextFile.

Keeping `device.waitForIdle()` before clicking on the save button,
instead of after fixes the issue.

Bug: 319454648
Test: atest DocumentsUIGoogleTests:ActionCreateDocumentUiTest --iterations 100
Change-Id: Ib6b14b04cc9bcbdbd1ab5a6766a004759c272444
parent 3cb12479
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -80,8 +80,8 @@ public class ActionCreateDocumentUiTest extends DocumentsUiTestBase {
        final String fileName = UUID.randomUUID() + ".txt";

        bots.main.setDialogText(fileName);
        bots.main.clickSaveButton();
        device.waitForIdle();
        bots.main.clickSaveButton();

        final Instrumentation.ActivityResult activityResult = mRule.getActivityResult();
        assertThat(activityResult.getResultCode()).isEqualTo(RESULT_OK);