Skip to content

Flutter to packages roller fails from failure to click play button in video_player_avfoundation XCUI test #121545

Description

@bparrishMines

The XCUI test for plugin video_player_avfoundation has started failing and is blocking the Flutter to packages roller:

/Volumes/Work/s/w/ir/x/w/packages/packages/video_player/video_player_avfoundation/example/ios/RunnerUITests/VideoPlayerUITests.m:32: error: -[VideoPlayerUITests testPlayVideo] : Failed to Error Domain=com.apple.dt.xctest.ui-testing.error Code=10202 "Failed to scroll to visible (by AX action) StaticText, {{48.3, 35.1}, {33.3, 33.3}}, label: 'Play', error: Error kAXErrorCannotComplete performing AXAction kAXScrollToVisibleAction on element AX element pid: 28392, elementOrHash.elementID: 5691239680.37" UserInfo={NSLocalizedDescription=Failed to scroll to visible (by AX action) StaticText, {{48.3, 35.1}, {33.3, 33.3}}, label: 'Play', error: Error kAXErrorCannotComplete performing AXAction kAXScrollToVisibleAction on element AX element pid: 28392, elementOrHash.elementID: 5691239680.37, NSUnderlyingError=0x6000019eab80 {Error Domain=XCTDaemonErrorDomain Code=0 "Error kAXErrorCannotComplete performing AXAction kAXScrollToVisibleAction on element AX element pid: 28392, elementOrHash.elementID: 5691239680.37" UserInfo={NSLocalizedDescription=Error kAXErrorCannotComplete performing AXAction kAXScrollToVisibleAction on element AX element pid: 28392, elementOrHash.elementID: 5691239680.37}}}: Failed to scroll to visible (by AX action) StaticText, {{48.3, 35.1}, {33.3, 33.3}}, label: 'Play', error: Error kAXErrorCannotComplete performing AXAction kAXScrollToVisibleAction on element AX element pid: 28392, elementOrHash.elementID: 5691239680.37. (Underlying Error: Error kAXErrorCannotComplete performing AXAction kAXScrollToVisibleAction on element AX element pid: 28392, elementOrHash.elementID: 5691239680.37)
    t =     6.56s Tear Down
Test Case '-[VideoPlayerUITests testPlayVideo]' failed (6.776 seconds).
Test Suite 'VideoPlayerUITests' failed at 2023-02-27 07:33:58.192.
	 Executed 1 test, with 1 failure (0 unexpected) in 6.776 (6.777) seconds
Test Suite 'RunnerUITests.xctest' failed at 2023-02-27 07:33:58.192.
	 Executed 1 test, with 1 failure (0 unexpected) in 6.776 (6.778) seconds
Test Suite 'All tests' failed at 2023-02-27 07:33:58.192.
	 Executed 1 test, with 1 failure (0 unexpected) in 6.776 (6.779) seconds

The failing test: https://github.com/flutter/packages/blob/main/packages/video_player/video_player_avfoundation/example/ios/RunnerUITests/VideoPlayerUITests.m#L22

Failing line:
Screenshot 2023-02-27 at 4 01 09 PM

It seems to be fail when clicking the play button in the example found in main: https://github.com/flutter/packages/blob/main/packages/video_player/video_player_avfoundation/example/lib/main.dart#L243

Potentially related to the semanticLabel?

After running the test on different flutter/flutter commits, it seems that the culprit is #113461

cc @chunhtai @goderbauer

Activity

  1. added
    packageflutter/packages repository. See also p: labels.
    P0Critical issues such as a build break or regression
    on Feb 27, 2023
  2. changed the title [-]Flutter to packages roller on failure to click play button[/-] [+]Flutter to packages roller fails from failure to click play button in `video_player_avfoundation` XCUI test[/+] on Feb 27, 2023
  3. chunhtai commented on Feb 27, 2023

    @chunhtai
    Contributor

    revert #121562

  4. added and removed
    P0Critical issues such as a build break or regression
    on Feb 27, 2023
  5. chunhtai commented on Feb 27, 2023

    @chunhtai
    Contributor

    lower to P2 since the revert is landed, and it is now blocking #111931 instead

  6. chunhtai commented on Feb 27, 2023

    @chunhtai
    Contributor

    note to myself

    ./script/tool_runner.sh native-test --ios --ios-destination "platform=iOS Simulator,name=iPhone 13,OS=latest" --packages=video_player

  7. github-actions commented on Mar 15, 2023

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  8. locked as resolved and limited conversation to collaborators on Mar 15, 2023
  9. added
    P0Critical issues such as a build break or regression
    and removed on Jun 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P0Critical issues such as a build break or regressionpackageflutter/packages repository. See also p: labels.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions