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

1. Summary

Total Runs Success Rate Total time Failures Errors Skipped

0

100.0%

4.949 seconds

1

0

7

2. Features

2.1. Functionality of Component with Excluded Components in LG IGNORED

Result: IGNORED Time: 1.754 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 = "#page-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 Background and Included Components in LG FAILURE

Result: FAILURE Time: 2.337 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 = "#page-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 Background and Included Components in LG The component should be on the page

  • And Section should have a background image

1
assert $(selector).css("background-image").indexOf("/content/dam/aemdesign-showcase/en/components/media/image/city2.jpg") > 0
  • 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:

The following problems occurred:
Condition not satisfied:

$(selector).css("background-image").indexOf("/content/dam/aemdesign-showcase/en/components/media/image/city2.jpg") > 0
| |         |                       |                                                                              |
| |         none                    -1                                                                             false
| #page-details2
[[[RemoteWebDriver: chrome on LINUX (344ae6bde7271fdb2bbbc1d742ebe779)] -> css selector: #page-details2]]

2.3. Functionality of Component with Hidden Variant IGNORED

Result: IGNORED Time: 0

URL:

  • 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 = "#page-details3"
def selectorContainer = "#contentblock3"
  • 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 Has Breadcrumb hidden

1
assert $("${selector} nav.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.4. Functionality of Component with Background and Inherited Toolbar IGNORED

Result: IGNORED Time: 0

URL:

  • 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 = "#page-details4"
def selectorContainer = "#contentblock4 .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")
  • And Section should have a background image

1
assert $(selector).css("background-image").indexOf("/content/dam/aemdesign-showcase/en/components/media/image/city2.jpg") > 0
  • And Has Breadcrumb visible

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

1
assert $("${selector} nav.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_parent_toolbar").text().trim() == "Text in Parent Toolbar"
  • And Has Parsys visible

1
assert $("${selector} .text").isEmpty() == false
  • And Has Custom Title

1
assert $("${selector} #text_in_parsys").text().trim() == "Text in Parsys"
  • And Has Custom Description

1
2
assert $("${selector} header h1").text().trim() == "Page Title 4"
assert $("${selector} header .description").text().trim() == "Custom Description"
  • Where:

2.5. Page Details: Default without included components and hidden Description IGNORED

Result: IGNORED Time: 0

URL:

  • 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 = "#page-details5"
def selectorContainer = "#contentblock5"
  • 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")
  • And Has Breadcrumb hidden

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

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

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

1
assert $("${selector} .description").isEmpty() == true
  • And Has Title showing

1
assert $("${selector} h1").isEmpty() == false
  • Where:

2.6. Page Details: Default without included components and hidden Title and Description IGNORED

Result: IGNORED Time: 0

URL:

  • 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 = "#page-details6"
def selectorContainer = "#contentblock6"
  • 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($(selectorContainer).firstElement(), "The component should not be on the page")
  • And Has Breadcrumb hidden

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

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

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

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

1
assert $("${selector} .description").isEmpty() == true
  • And Has Title showing

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

2.7. Page Details: Default metadata added to page IGNORED

Result: IGNORED Time: 0

URL:

  • 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
def selector = "#page-details"
  • When I am on the component showcase page

1
2
setWindowSize("LG",false)
waitForAuthorPreviewPage()
  • Then The component should be on the page

1
def component = waitForComponent(selector)
  • And Page has metadata field og:title from Details component

1
assert $("meta[property='og:title']").attr("content").equals("Page Title")
  • And Page has metadata field og:type

1
assert $("meta[property='og:type']").attr("content").equals("article")
  • And Page has metadata field og:image

1
assert $("meta[property='og:image']").attr("content").contains("page-details.thumb.")
  • And Page has metadata field og:url

1
assert $("meta[property='og:url']").attr("content").contains("details/page-details.html")
  • And Page has canonical link

1
assert $("link[rel='canonical']").attr("href").contains("details/page-details.html")