From b94fc13d817699ecb8a87e4cd998b56c4dd19c29 Mon Sep 17 00:00:00 2001 From: wildone Date: Thu, 18 Feb 2021 12:15:37 +1100 Subject: [PATCH] check for boolean attribute --- .../specs/component/media/video/VideoPublishSpec.groovy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aemdesign-testing/src/test/groovy/specs/component/media/video/VideoPublishSpec.groovy b/aemdesign-testing/src/test/groovy/specs/component/media/video/VideoPublishSpec.groovy index 8168f70c3..3b539fc53 100644 --- a/aemdesign-testing/src/test/groovy/specs/component/media/video/VideoPublishSpec.groovy +++ b/aemdesign-testing/src/test/groovy/specs/component/media/video/VideoPublishSpec.groovy @@ -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()