Convert some of the uiDevice.findObject() and uiDevice.wait() to composeTestRule. In external intent launches, the using composeTestRule.waitUtil() for the snackBar causes a strange behavior, so that one remains using uiDevice.wait().
Instead of the convoluted implementation before, added runScenarioTestForResult() for simpler code and better readability.
For image_capture() failure we were experiencing in presubmit, removed the assertion on deleteFileInDireAfterTimestamp() and assert the lastModifiedTime of the folder. I cannot repro the failure on my device, so I hope this may fix it.
Convert some of the uiDevice.findObject() and uiDevice.wait() to composeTestRule. In external intent launches, the using composeTestRule.waitUtil() for the snackBar causes a strange behavior, so that one remains using uiDevice.wait().
Instead of the convoluted implementation before, added runScenarioTestForResult() for simpler code and better readability.
For image_capture() failure we were experiencing in presubmit, removed the assertion on deleteFileInDireAfterTimestamp() and assert the lastModifiedTime of the folder. I cannot repro the failure on my device, so I hope this may fix it.