created on Wed Sep 15 01:20:34 UTC 2021 by root

1. Summary

Total Runs Success Rate Total time Failures Errors Skipped

0

100.0%

8.477 seconds

1

0

4

2. Features

2.1. Functionality of Component variant Default without included components in LG FAILURE

Result: FAILURE Time: 6.839 seconds

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

  • And >I am in the component showcase page

  • And >the component is on the showcase page

1
2
def selector = "#contact-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 without included 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
  • And Has Image with Alt Title

1
assert $("${selector} img").attr("alt").trim() == "Author: Max Barrass"
  • And Has Image with Page Image as Thumbnail from Uploaded Image

1
assert $("${selector} img").attr("src").contains("/content/aemdesign-showcase/au/en/component/details/contact-details.thumb.319.319.png")
  • And Has Title line with content

1
assert $("${selector} .title").text().trim() == "Author: Max Barrass"
  • And Has Description line with content

1
assert $("${selector} .description").text().trim() == "Founder for AEM.Design max.barrass@gmail.com"
  • And Has Description has field jobTitle

1
assert $("${selector} .description [itemprop=jobTitle]").text().trim() == "Founder"
  • And Has Description has field employer

1
assert $("${selector} .description [itemprop=legalName]").text().trim() == "AEM.Design"
  • And Has Description has field email

1
assert $("${selector} .description [itemprop=email]").text().trim() == "max.barrass@gmail.com"
  • Where:

The following problems occurred:
Condition not satisfied:

$("${selector} img").attr("alt").trim() == "Author: Max Barrass"
|   |                |           |      |
|   #contact-details1|           |      false
|                    |           |      16 differences (15% similarity)
|                    |           |      (Con)t(act-) (Det--)a(il-)s(-)
|                    |           |      (Au-)t(hor:) (Max B)a(rra)s(s)
|                    |           Contact Details
|                    Contact Details
[[[RemoteWebDriver: chrome on LINUX (344ae6bde7271fdb2bbbc1d742ebe779)] -> css selector: #contact-details1 img]]

2.2. Functionality of Component variant Default Blank without included components IGNORED

Result: IGNORED Time: 0

URL:

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

  • And >I am in the component showcase page

  • And >the component is on the showcase page

1
2
def selector = "#contact-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
2
def component = waitForComponent(selector)
takeScreenshot($(selector).firstElement(), "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
  • And Has Image with Alt Title

1
assert $("${selector} img").attr("alt").trim() == "Contact Details"
  • And Has Image with Page Image as Thumbnail

1
assert $("${selector} img").attr("src").contains("/content/aemdesign-showcase/au/en/component/details/contact-details.thumb.319.319.png")
  • And Has Title line with content

1
assert $("${selector} .title").text().trim() == "Contact Details"
  • And Has Description should be empty

1
assert $("${selector} div.description").text().isEmpty()
  • Where:

2.3. Functionality of Component variant Default Hidden IGNORED

Result: IGNORED Time: 0

URL:

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

  • And >I am in the component showcase page

  • And >the component is on the showcase page

1
2
def selector = "#contact-details3"
def selectorContainer = "#contentblock3 .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 have no content

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

2.4. Contact Details: Default metadata added to page IGNORED

Result: IGNORED Time: 0

URL:

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

  • And >I am in the component showcase page

  • And >the component is on the showcase page

1
def selector = "#contact-details"
  • 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 Page has metadata field og:title

1
assert $("meta[property='og:title']").attr("content").equals("Contact Details")
  • 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("contact-details.thumb.")
  • And Page has metadata field og:url

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

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