created on Wed Sep 15 01:22:08 UTC 2021 by root

1. Summary

Total Runs Success Rate Total time Failures Errors Skipped

0

100.0%

5.859 seconds

1

0

3

2. Features

2.1. Functionality of Component with Excluded Components in LG IGNORED

Result: IGNORED Time: 1.766 seconds

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

  • And >I am in the component showcase page

  • And >the component is on the showcase page

1
2
def selector = "#news-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 with Excluded Components in LG The component should be on the page

  • And Has Breadcrumb hidden

1
assert $("${selector} .breadcrumb").isEmpty() == true
  • And Has Toolbar hidden

1
assert $("${selector} .navbar").isEmpty() == true
  • And Has Parsys hidden

1
assert $("${selector} .text").isEmpty() == true
  • Where:

2.2. Functionality of Component with Included Components in LG IGNORED

Result: IGNORED Time: 1.938 seconds

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

  • And >I am in the component showcase page

  • And >the component is on the showcase page

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

1
2
3
setWindowSize(viewport)
waitForAuthorPreviewPage()
report("I am on the component showcase page")
  • 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 with Included Components in LG The component should be on the page

  • And Has Breadcrumb visible

1
assert $("${selector} nav.breadcrumb").isEmpty() == false
  • And Has Toolbar has sample content

1
assert $("${selector} ol.breadcrumb li").first().text().trim() == "AEM.Design Showcase"
  • And Has Toolbar visible

1
assert $("${selector} .navbar").isEmpty() == false
  • And Has Toolbar has sample content

1
assert $("${selector} #text_in_toolbar").text().trim() == "Text in Toolbar"
  • And Has Parsys visible

1
assert $("${selector} .text").isEmpty() == false
  • And Has Parsys has sample content

1
assert $("${selector} #text_in_parsys").text().trim() == "Text in Parsys"
  • Where:

2.3. Functionality of News Details Component with Background and Formatted Date in LG FAILURE

Result: FAILURE Time: 1.387 seconds

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

  • And >I am in the component showcase page

  • And >the component is on the showcase page

1
def selector = "#news-details3"
  • 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 The component should have the date in EEEE dd MMMM YYYY format

1
2
3
def dateString =  $("${selector} .published time").text()
DateTimeFormatter format = DateTimeFormatter.ofPattern("EEEE dd MMMM yyyy", Locale.ENGLISH)
assert LocalDate.parse(dateString, format)
  • And The component should display tags

1
2
assert $("${selector} .tags span" , 0).text().contains("News Page") &&
$("${selector} .tags span" , 1).text().contains("Event")
  • And The component should have a title

1
assert  $("${selector} h1").text().contains("News Details Title")
  • And The component should have a thumbnail image

1
assert $("${selector}").css("background-image").contains("city2.jpg")
  • And Has Breadcrumb visible

1
assert $("${selector} nav.breadcrumb").isEmpty() == false
  • And Has Toolbar has sample content

1
assert $("${selector} ol.breadcrumb li").first().text().trim() == "AEM.Design Showcase"
  • Where:

The following problems occurred:
Condition failed with Exception:

$("${selector} .tags span" , 0).text().contains("News Page") && $("${selector} .tags span" , 1).text().contains("Event")
|   |                           |      |
[]  #news-details3              null   java.lang.NullPointerException: Cannot invoke method contains() on null object