Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wait until compose is idle before returning from DesktopTestOwner.getRoots() #588

Conversation

m-sasha
Copy link

@m-sasha m-sasha commented Jun 1, 2023

Proposed Changes

Run waitUntilIdle in DesktopTestOwner.getRoots(), as expected by its contract (documented in TestOwner.getRoots()). This makes tests wait until compose is idle when obtaining any semantic node interactions (onNode and such), as expected.

Testing

Test: Added a unit test.

@m-sasha m-sasha requested review from igordmn and eymar June 1, 2023 11:53
@m-sasha m-sasha force-pushed the m-sasha/sync-main-test-and-frame-clocks branch from b9fdfe4 to 072667c Compare June 3, 2023 07:29
@m-sasha m-sasha force-pushed the m-sasha/wait-for-idle-when-getting-test-roots branch from 1d3e287 to 388c66c Compare June 3, 2023 07:31
Base automatically changed from m-sasha/sync-main-test-and-frame-clocks to m-sasha/test-framework June 3, 2023 12:06
@m-sasha m-sasha force-pushed the m-sasha/wait-for-idle-when-getting-test-roots branch from 388c66c to 3d8c570 Compare June 3, 2023 12:08
@m-sasha m-sasha merged commit aae7996 into m-sasha/test-framework Jun 4, 2023
1 of 2 checks passed
@m-sasha m-sasha deleted the m-sasha/wait-for-idle-when-getting-test-roots branch June 4, 2023 07:04
eymar pushed a commit that referenced this pull request Aug 16, 2023
This allows automatically assigning the correct owner for biometric to PRs on GitHub.

Test: GH CODEOWNERS Lint
Change-Id: Ifaa78b7300a5b523d229e96a05e8ece4e16c2441

This is an imported pull request from androidx#588.

Resolves #588
Github-Pr-Head-Sha: 7a31cbc
GitOrigin-RevId: 449e8fa
Change-Id: I04c1c0b54da48d0d48f643622dad8bb0b372c895
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants