created on Wed Sep 15 01:30:30 UTC 2021 by root

1. Summary

Total Runs Success Rate Total time Failures Errors Skipped

2

100.0%

3.927 seconds

0

0

0

2. Features

2.1. Functionality of Search List Component Variant: Default without Query in LG PASS

Result: PASS Time: 1.533 seconds

  • Given: >the page hierarchy is created as "Components" > "Lists" > "Search List"

  • And >I am in the component showcase page

  • And >the component is on the showcase page

1
2
def selector = "#searchlist1"
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")
Current

Functionality of Search List Component Variant Default without Query in LG The component should be on the page

  • And Should be empty and contain default text

1
assert $(selector).children().size() == 1 &&  $(selector).children().text().contains("Invalid query given!")
  • Where: Browser size width: 1366 and height: 1024

2.2. Functionality of Search List Component Default with Query in LG PASS

Result: PASS Time: 1.694 seconds

  • Given: >the page hierarchy is created as "Components" > "Lists" > "Search List"

  • And >I am in the component showcase page

  • And >the component is on the showcase page

1
2
3
4
5
6
7
8
9
10
11
12
def selector = "#searchlist1"
def stringQuery = "fulltext=city\n" +
"group.p.or=true\n" +
"group.1_group.path=/content/aemdesign-showcase/au/en/component/lists/search-list\n" +
"group.1_group.type=cq:Page\n" +
"group.1_group.property=@jcr:content/hideInNav\n" +
"group.1_group.property.operation=exists\n" +
"group.1_group.property.value=false\n" +
"group.2_group.path=/content/dam/aemdesign-showcase\n" +
"group.2_group.type=dam:Asset\n" +
"orderby=path"
def query_string = "q=" + URLEncoder.encode(stringQuery, "UTF-8")
  • When I am on the component showcase page

1
2
3
setWindowSize(viewport)
waitForAuthorPreviewPageWithQuery(language, query_string)
printDebug("URL", driver.currentUrl)
  • 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 Search List Component Default with Query in LG The component should be on the page

  • And Should contain results

1
assert $(selector).find(".results").children().size() > 0
  • Where: Browser size width: 1366 and height: 1024