Skip to content

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

@bparrishMines

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

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