Skip to content

Commit

Permalink
check for boolean attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
wildone committed Feb 18, 2021
1 parent 7ca7a87 commit b94fc13
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ class VideoPublishSpec extends ComponentSpec {
and: "Should have sample content loaded"
assert $("${selector} video").firstElement().getAttribute("readyState") == "4"

and: "Should have sample content playing"
assert js.exec("return \$(\"${selector} video\")[0].paused == false;")
and: "Should have autoplay attribute"
assert js.exec( "return \$(\"$selector\").find(\"video\")[0]..hasAttribute(\"autoplay\");" )

where: "Browser size width: #viewport.width and height: #viewport.height"
viewport << getViewPorts()
Expand Down

0 comments on commit b94fc13

Please sign in to comment.