Also added some reusable utilities for interacting with permissions dialogs and finding system UI components by text.
Test orchestration is required for each permissions test. Each test must be isolated to its own instrumentation since permissions are being granted and reset during the tests. resetting or revorking permissions between tests isn't supported for testing in a single instrumentation -- it can cause unexpected, flaky behavior when tests are run in sequence.
Tests written for permissions UI flow
Also added some reusable utilities for interacting with permissions dialogs and finding system UI components by text.
Test orchestration is required for each permissions test. Each test must be isolated to its own instrumentation since permissions are being granted and reset during the tests. resetting or revorking permissions between tests isn't supported for testing in a single instrumentation -- it can cause unexpected, flaky behavior when tests are run in sequence.