Skip to content

[webview_flutter] Android background test times out on FTL #94748

@stuartmorgan-g

Description

@stuartmorgan-g

flutter/plugins#4569 adds a native UI test using espresso, but it doesn't seem to run correctly in FTL (see https://github.com/flutter/plugins/pull/4569/files#r762446578 for background):

androidx.test.espresso.AppNotIdleException: Looped for 5404 iterations over 60 SECONDS. The following Idle Conditions failed .
at dalvik.system.VMStack.getThreadStackTrace(Native Method)
at java.lang.Thread.getStackTrace(Thread.java:1736)
at androidx.test.espresso.base.DefaultFailureHandler.getUserFriendlyError(DefaultFailureHandler.java:96)
at androidx.test.espresso.base.DefaultFailureHandler.handle(DefaultFailureHandler.java:59)
at androidx.test.espresso.ViewInteraction.waitForAndHandleInteractionResults(ViewInteraction.java:322)
at androidx.test.espresso.ViewInteraction.desugaredPerform(ViewInteraction.java:178)
at androidx.test.espresso.ViewInteraction.perform(ViewInteraction.java:119)
at androidx.test.espresso.flutter.EspressoFlutter$WidgetInteraction.performInternal(EspressoFlutter.java:142)
at androidx.test.espresso.flutter.EspressoFlutter$WidgetInteraction.perform(EspressoFlutter.java:107)
at io.flutter.plugins.webviewflutterexample.BackgroundColorTest.backgroundColor(BackgroundColorTest.java:38)
at java.lang.reflect.Method.invoke(Native Method)

It runs fine when run locally via native-test, and it's failing on the very first line (nothing obscure related to the thing being tested), so it seems like the problem here is that something is wrong with our ability to run this kind of test on our CI at the moment, rather than an issue with the test itself.

/cc @blasten @bparrishMines

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work lista: tests"flutter test", flutter_test, or one of our testsc: contributor-productivityTeam-specific productivity, code health, technical debt.p: webviewThe WebView pluginpackageflutter/packages repository. See also p: labels.platform-androidAndroid applications specificallyteam-androidOwned by Android platform teamtriaged-androidTriaged by Android platform team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions