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

1. Summary

Total Runs Success Rate Total time Failures Errors Skipped

0

100.0%

4.316 seconds

1

0

1

2. Features

2.1. Functionality of Component variant Default using DAM Asset as Page Image in LG FAILURE

Result: FAILURE Time: 3.134 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 using DAM Asset as Page Image 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() == "97236996"
  • And Has Image with Page Image as Thumbnail from Asset Image

1
assert $("${selector} img").attr("src").contains("/content/dam/aemdesign-showcase/en/common/images/abstract.jpg/_jcr_content/renditions/cq5dam.thumbnail.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} .title").text().trim() == "Author: Max Barrass"
|   |                   |      |      |
|   #contact-details1   |      |      false
|                       |      |      18 differences (5% similarity)
|                       |      |      (Page---) (Title------)
|                       |      |      (Author:) (Max Barrass)
|                       |      Page Title
|                       Page Title
[[[RemoteWebDriver: chrome on LINUX (344ae6bde7271fdb2bbbc1d742ebe779)] -> css selector: #contact-details1 .title]]