created on Wed Sep 15 01:13:03 UTC 2021 by root

1. Summary

Total Runs Success Rate Total time Failures Errors Skipped

1

100.0%

22.828 seconds

0

0

0

2. Features

2.1. Functionality of Data Layer in LG PASS

Result: PASS Time: 15.138 seconds

  • Given: >the page hierarchy is created as "Components" > "Analytics" > "Data Layer"

  • And >I am in the component showcase page

  • And >the component is on the showcase page

1
def selector = "#pagedetails1"
  • When I am on the component showcase page

1
2
setWindowSize(viewport)
waitForAuthorPreviewPage()
  • Then The page should have digitalData object defined

1
assert js.exec("return window.digitalData != undefined;")
  • Then The digitalData.page.pageInfo.pageType should equals "common"

1
assert js.exec("return window.digitalData.page.pageInfo.pageType == 'common';")
  • Then The digitalData.page.pageInfo.contentLanguage should equals "Australia"

1
assert js.exec("return window.digitalData.page.pageInfo.contentLanguage == 'english';")
  • Then The digitalData.page.pageInfo.contentCountry should equals "english"

1
assert js.exec("return window.digitalData.page.pageInfo.contentCountry == 'Australia';")
  • Then The digitalData.page.pageInfo.pageName should equals "aemdesign-showcase:en:component:analytics:datalayer"

1
assert js.exec("return window.digitalData.page.pageInfo.pageName == 'aemdesign-showcase:en:component:analytics:datalayer';")
  • Then The digitalData.page.pageInfo.effectiveDate should equals ""

1
assert js.exec("return window.digitalData.page.pageInfo.effectiveDate == '';")
  • Then The digitalData.page.pageInfo.referringURL should equal ""

1
assert js.exec("return window.digitalData.page.pageInfo.referringURL == '';")
  • Then The digitalData.page.pageInfo.destinationUrl should end with "datalayer.html"

1
assert js.exec("return window.digitalData.page.pageInfo.destinationUrl.endsWith(\"datalayer.html\");")
  • Then The digitalData.page.attributes.abort should equals "false"

1
assert js.exec("return window.digitalData.page.pageInfo.abort == 'false';")
  • Then The digitalData.page.attributes.platform should equals "aem"

1
assert js.exec("return window.digitalData.page.pageInfo.platform == 'aem';")
  • Then The digitalData.page.pageInfo.sections should be set

1
assert js.exec("return window.digitalData.page.pageInfo.sections !== \"\";")
  • Where: