Skip to content

Commit

Permalink
make sure to pause video before screenshot
Browse files Browse the repository at this point in the history
  • Loading branch information
wildone committed Feb 16, 2021
1 parent 725cfe3 commit 017389b
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ class VideoPublishSpec extends ComponentSpec {

and: "Should have sample content"
assert $("${selector} video source").attr("src").contains("/FishTank.mp4")
assert js.exec( "\$(\"$selector\").find(\"video\")[0].pause(); return true;")
assert js.exec( "\$(\"$selector\").find(\"video\")[0].currentTime=2; return true;")
takeScreenshot($(selector).firstElement(), "Should have sample content")

and: "Should have sample content loaded"
Expand Down

0 comments on commit 017389b

Please sign in to comment.