created on Thu Aug 12 17:49:31 UTC 2021 by root

1. Summary

Total Runs Success Rate Total time Failures Errors Skipped

0

100.0%

3.778 seconds

1

0

4

2. Features

2.1. Functionality of Component Variant: Default in LG FAILURE

Result: FAILURE Time: 2.637 seconds

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

  • And >I am in the component showcase page

  • And >the component is on the showcase page

1
2
def selector = "#event-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 in LG The component should be on the page

  • And Should have sample heading

1
assert $("$selector h1").text().trim().toLowerCase().equals("Event Details".toLowerCase())
  • And Has Description line with content

1
assert $("${selector} div.description").text().trim() == "Event to showcase all events"
  • And Has Description line with content

1
assert $("${selector} div.card-subtitle").text().trim() == "Mon 1 October to Fri 5 October"
  • And Has Description line with content

1
assert $("${selector} div.card-date").text().trim() == "9:20 AM to 9:20 AM"
  • Where:

The following problems occurred:
Condition not satisfied:

$("${selector} div.card-subtitle").text().trim() == "Mon 1 October to Fri 5 October"
|   |                              |      |      |
|   #event-details1                |      |      false
|                                  |      |      13 differences (60% similarity)
|                                  |      |      (Su)n (30) (Sep)t(em)ber to (Thu) (4) October
|                                  |      |      (Mo)n (1-) (Oc-)t(o-)ber to (Fri) (5) October
|                                  |      Sun 30 September to Thu 4 October
|                                  Sun 30 September to Thu 4 October
[[[RemoteWebDriver: chrome on LINUX (13b7334604e2b6cfd3853f74d8158456)] -> css selector: #event-details1 div.card-subtitle]]

2.2. Functionality of Component Variant: Hidden IGNORED

Result: IGNORED Time: 0

URL:

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

  • And >I am in the component showcase page

  • And >the component is on the showcase page

1
2
def selector = "#event-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
def component = waitForComponent(selector)
  • And Component should be hidden

1
assert $("${selector}[hidden]").size() == 1
  • Where:

2.3. Functionality of Component Variant: Default with Formatting IGNORED

Result: IGNORED Time: 0

URL:

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

  • And >I am in the component showcase page

  • And >the component is on the showcase page

1
2
def selector = "#event-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
2
def component = waitForComponent(selector)
takeScreenshot($(selector).firstElement(), "The component should be on the page")
  • And Should have sample heading

1
assert $("$selector h3").text().trim().toLowerCase().equals("Event Details".toLowerCase())
  • And Has Description line with content

1
assert $("${selector} div.description").text().trim() == "Event to showcase all events"
  • And Has Description line with content

1
assert $("${selector} div.card-subtitle").text().trim() == "Mon 1 October to Fri 5 October"
  • And Has Description line with content

1
assert $("${selector} div.card-date").text().trim() == "9:20 am9:20 am"
  • And Has Description line with content that has startDate time

1
assert $("${selector} div.card-date time[itemprop='startDate']").size() == 1
  • And Has Description line with content that has endDate time

1
assert $("${selector} div.card-date time[itemprop='endDate']").size() == 1
  • Where:

2.4. Event Details: Default metadata added to page IGNORED

Result: IGNORED Time: 0

URL:

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

  • And >I am in the component showcase page

  • And >the component is on the showcase page

1
def selector = "#event-details"
  • When I am on the component showcase page

1
2
setWindowSizeLG()
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("Event 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("event-details.thumb.")
  • And Page has metadata field og:url

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

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