created on Wed Sep 15 01:32:58 UTC 2021 by root

1. Summary

Total Runs Success Rate Total time Failures Errors Skipped

0

100.0%

2.333 seconds

1

0

1

2. Features

2.1. Functionality of Component Variant: Default in LG FAILURE

Result: FAILURE Time: 1.560 seconds

  • Given: >the page hierarchy is created as "Components" > "Media" > "Video"

  • And >I am in the component showcase page

  • And >the component is on the showcase page

1
2
def selector = "#video1"
def selectorContainer = "#contentblock1 .contents"
  • When I am on the component showcase page

1
2
setWindowSize(viewport)
waitForAuthorPreviewPage()
  • Then The component should be on the page

1
2
def component = waitForComponent(selector)
report("The component should be on the page")
  • And Should have sample content

1
2
3
4
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")
Current

Functionality of Component Variant Default in LG Should have sample content

  • And Should have sample content loaded

1
assert $("${selector} video").firstElement().getAttribute("readyState") == "4"
  • And Should have autoplay attribute

1
assert js.exec( "return \$(\"$selector\").find(\"video\")[0].hasAttribute(\"autoplay\");" )
  • Where: Browser size width: 1366 and height: 1024

The following problems occurred:
Condition not satisfied:

$("${selector} video").firstElement().getAttribute("readyState") == "4"
|   |                  |              |                          |
|   #video1            |              0                          false
|                      |                                         1 difference (0% similarity)
|                      |                                         (0)
|                      |                                         (4)
|                      [[RemoteWebDriver: chrome on LINUX (344ae6bde7271fdb2bbbc1d742ebe779)] -> css selector: #video1 video]
[[[RemoteWebDriver: chrome on LINUX (344ae6bde7271fdb2bbbc1d742ebe779)] -> css selector: #video1 video]]