Skip to content

Commit

Permalink
feat(shared-video) fix tests after refactoring (jitsi#399)
Browse files Browse the repository at this point in the history
  • Loading branch information
quitrk authored Aug 2, 2021
1 parent 817b90c commit 527babf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/test/java/org/jitsi/meet/test/SharedVideoTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ private void checkPlayerLoadedAndInState(
participant.getDriver(),
JS_GET_SHARED_VIDEO_CONTAINER
+ "return (c && c._sharedVideoPlayer "
+ "&& c._sharedVideoPlayer.getPlaybackState() === '" + state + "');",
+ "&& c._sharedVideoPlayer.getPlaybackStatus() === '" + state + "');",
15);
}

Expand Down Expand Up @@ -242,7 +242,7 @@ public void seekTest()
// let's wait for the fast forward
String waitForFastForwardScript
= JS_GET_SHARED_VIDEO_CONTAINER
+ "return (c._sharedVideoPlayer.getPlaybackState() === 'playing'"
+ "return (c._sharedVideoPlayer.getPlaybackStatus() === 'playing'"
+ " && c._sharedVideoPlayer.getTime() > 86);";
TestUtils.waitForBoolean(
participant1.getDriver(),
Expand Down Expand Up @@ -294,13 +294,13 @@ public void muteTest()
TestUtils.waitForBoolean(
participant1.getDriver(),
JS_GET_SHARED_VIDEO_CONTAINER
+ "return (c._sharedVideoPlayer.getPlaybackState() === 'playing'"
+ "return (c._sharedVideoPlayer.getPlaybackStatus() === 'playing'"
+ " && c._sharedVideoPlayer.isMuted());",
10);
TestUtils.waitForBoolean(
getParticipant2().getDriver(),
JS_GET_SHARED_VIDEO_CONTAINER
+ "return (c._sharedVideoPlayer.getPlaybackState() === 'playing'"
+ "return (c._sharedVideoPlayer.getPlaybackStatus() === 'playing'"
+ " && (c._sharedVideoPlayer.isMuted() || c._sharedVideoPlayer.getVolume() == 0));",
10);
}
Expand Down

0 comments on commit 527babf

Please sign in to comment.