Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 2.3.3

* Fix XCUITest based on the new voice over announcement for tooltips.
See: https://github.com/flutter/flutter/pull/87684

## 2.3.2

* Applies the standardized transform for videos with different orientations.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,35 @@ - (void)testPlayVideo {
XCTAssertTrue([playButton waitForExistenceWithTimeout:30.0]);
[playButton tap];

XCUIElement *playbackSpeed1x = app.staticTexts[@"Playback speed\n1.0x"];
XCTAssertTrue([playbackSpeed1x waitForExistenceWithTimeout:30.0]);
XCUIElement *playbackSpeed1x = app.staticTexts[@"1.0x\nPlayback speed"];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You'll need to have both the old and new version, and wait for either one to show up, because the tests run on both stable and master.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, will do that

Copy link
Member

@jmagman jmagman Apr 28, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alternatively you could just look for 1.0x which is the spirit of this check.
( I don't think app.staticTexts[@"1.0x"] will work since the string needs to exactly match, but you could check if any contains that).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I missed this comment earlier. I like this better. Updated the PR with only looking for 1.0x and 5.0x

BOOL foundPlaybackSpeed1x = [playbackSpeed1x waitForExistenceWithTimeout:30.0];
if (!foundPlaybackSpeed1x) {
// Some old flutter version uses a different accessibility value for tooltips.
// We try to find the button if the old accessibility value is used.
// TODO(cyanglaz): Remove this when the new accessibility value is supported on flutter/stable
// https://github.com/flutter/flutter/issues/102771
playbackSpeed1x = app.staticTexts[@"Playback speed\n1.0x\n"];
foundPlaybackSpeed1x = [playbackSpeed1x waitForExistenceWithTimeout:30.0];
}
XCTAssertTrue(foundPlaybackSpeed1x);
[playbackSpeed1x tap];

XCUIElement *playbackSpeed5xButton = app.buttons[@"5.0x"];
XCTAssertTrue([playbackSpeed5xButton waitForExistenceWithTimeout:30.0]);
[playbackSpeed5xButton tap];

XCUIElement *playbackSpeed5x = app.staticTexts[@"Playback speed\n5.0x"];
XCTAssertTrue([playbackSpeed5x waitForExistenceWithTimeout:30.0]);
XCUIElement *playbackSpeed5x = app.staticTexts[@"5.0x\nPlayback speed"];
BOOL foundPlaybackSpeed5x = [playbackSpeed5x waitForExistenceWithTimeout:30.0];
if (!foundPlaybackSpeed5x) {
// Some old flutter version uses a different accessibility value for tooltips.
// We try to find the button if the old accessibility value is used.
// TODO(cyanglaz): Remove this when the new accessibility value is supported on flutter/stable
// https://github.com/flutter/flutter/issues/102771
playbackSpeed5x = app.staticTexts[@"Playback speed\n5.0x\n"];
foundPlaybackSpeed5x = [playbackSpeed5x waitForExistenceWithTimeout:30.0];
}
XCTAssertTrue(foundPlaybackSpeed5x);
[playbackSpeed5x tap];

// Cycle through tabs.
for (NSString *tabName in @[ @"Asset", @"Remote" ]) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: video_player_avfoundation
description: iOS implementation of the video_player plugin.
repository: https://github.com/flutter/plugins/tree/master/packages/video_player/video_player_avfoundation
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+video_player%22
version: 2.3.2
version: 2.3.3

environment:
sdk: ">=2.14.0 <3.0.0"
Expand Down