created on Wed Sep 15 01:21:49 UTC 2021 by root

1. Summary

Total Runs Success Rate Total time Failures Errors Skipped

2

100.0%

7.420 seconds

0

0

0

2. Features

2.1. Functionality of Component Variant: Default in LG PASS

Result: PASS Time: 2.952 seconds

  • Given: >the page hierarchy is created as "Components" > "Details" > "Location Details"

  • And >I am in the component showcase page

  • And >the component is on the showcase page

1
2
def selector = "#location-details1"
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)
takeScreenshot($(selector).firstElement(), "The component should be on the page")
Current

Functionality of Component Variant Default in LG The component should be on the page

  • And Should have sample heading

1
assert $("$selector h1").text().trim().toLowerCase().contains("Location Detail 1".toLowerCase())
  • And Should have data attribute latitude

1
assert $(selector).attr("data-latitude") == "10.0"
  • And Should have data attribute latitude

1
assert $(selector).attr("data-longitude") == "12.0"
  • And Should have data attribute latitude

1
assert $(selector).attr("data-pages") != ""
  • Where:

2.2. Functionality of Component Variant: Hidden in LG PASS

Result: PASS Time: 3.125 seconds

  • Given: >the page hierarchy is created as "Components" > "Details" > "Location Details"

  • And >I am in the component showcase page

  • And >the component is on the showcase page

1
2
def selector = "#location-details2"
def selectorContainer = "#contentblock2 .contents"
  • When I am on the component showcase page

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

1
def component = waitForComponent(selector)
  • And Component should be hidden

1
assert $("${selector}[hidden]").size() == 1
  • Where: