Skip to content

Expresso: Instant timeout with multi-process + multi rotation setup #2349

@Mathias-Boulay

Description

@Mathias-Boulay

Steps to reproduce the issue

1 - Clone the main branch of this sample repository: https://github.com/Mathias-Boulay/expresso-issue
2 - Execute the landscapeHandling instrumentation test under androidTest

Describe the issue

Basically, there is an issue where if both multi process and each of the activities have a different rotation (landscape/portrait) where it instantly times out trying to interact with the UI.

The only relevant part of the error I think is here:

androidx.test.espresso.remote.RemoteEspressoException: The following remote Espresso exception with error code [0] occurred:
androidx.test.espresso.NoActivityResumedException: Timed out waiting for Activity's orientation to update.
[...]

Note: tested on an emulator API 29

Video demonstration

Screencast.From.2025-02-28.05-35-21.mp4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions