Skip to content

[ios][quick_actions] XCUITest takes a long time #191467

Open

Description

@hellohuanlin

Use case

In this PR: flutter/packages#12436

The test takes a long time to pass:

Test case 'RunnerUITests.testQuickActionWhenAppIsInBackground()' passed on 'Clone 2 of Flutter-iPhone - RunnerUITests-Runner (36664)' (138.994 seconds)
Test case 'RunnerUITests.testQuickActionWithFreshStart()' passed on 'Clone 2 of Flutter-iPhone - RunnerUITests-Runner (36664)' (127.354 seconds)

Proposal

I feed the whole output to gemini, and here's what I got:

For any UI action on an element belonging to com.apple.springboard, XCTest pauses to wait for SpringBoard's animation and main run loop to settle to an idle state (Wait for com.apple.springboard to idle).
In the iOS Simulator, when SpringBoard displays a quick action context menu (with its backdrop blur and presentation effects), it never reports an idle state.

It recommends to disable

springboard.setValue(false, forKey: "waitForQuiescence")

But I tried it and didn't work (test crashes with key not found).

Activity

  1. added
    P2Important issues not at the top of the work list
    triaged-iosTriaged by iOS platform team
    on Aug 27, 2026
  2. added
    a: tests"flutter test", flutter_test, or one of our tests
    on Aug 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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 testsp: quick_actionsQuickActions pluginplatform-iosiOS applications specificallyteam-iosOwned by iOS platform teamtriaged-iosTriaged by iOS platform team

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions