Skip to content

Commit

Permalink
plasma_browser_integration: Retry pausing the video (#10436)
Browse files Browse the repository at this point in the history
In some cases, clicks to the pause button in the applet appear to get lost
for some reason. Like the code above, retry up to three times.

Fixes https://progress.opensuse.org/issues/64565 (hopefully)
  • Loading branch information
Vogtinator committed Jun 3, 2020
1 parent a64f139 commit 695fb3d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions tests/x11/plasma_browser_integration.pm
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,13 @@ sub run {
last if check_screen('plasma-mpris-pause', 20);
}

# Pause using the button in the applet
assert_and_click('plasma-mpris-pause');
# Verify that the applet noticed that
$counter = 3;
while ($counter-- > 0) {
# Pause using the button in the applet
assert_and_click('plasma-mpris-pause');
# Verify that the applet noticed that
last if check_screen('plasma-mpris-paused', 5);
}
assert_screen('plasma-mpris-paused');
# Verify that the video is paused and unpause it
assert_and_click('plasma-browser-integration-video-unpause');
Expand Down

0 comments on commit 695fb3d

Please sign in to comment.