created on Wed Sep 15 01:29:32 UTC 2021 by root

1. Summary

Total Runs Success Rate Total time Failures Errors Skipped

0

100.0%

2.864 seconds

1

0

1

2. Features

2.1. Functionality of Component with Card with Image Title Description and Action with Pagination in LG FAILURE

Result: FAILURE Time: 2.095 seconds

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

  • And >I am in the component showcase page

  • And >the component is on the showcase page

1
def selector = "#newslist2"
  • 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 with Card with Image Title Description and Action with Pagination in LG The component should be on the page

  • And Has two list items

1
assert $("${selector} li").size() == 2
  • And Only next link exists on first page, without previous link

1
2
3
scrollIntoView($("${selector} .pagination").firstElement())
assert $("${selector} .pagination .next").isDisplayed()
assert !$("${selector} .pagination .previous").isDisplayed()
  • And Has pagination details

1
2
assert $("${selector} .pagination .current").text().trim() == "1"
takeScreenshot($(selector).firstElement(), "The component should be on first page")
  • And Can select page 2

1
2
3
4
scrollIntoView($("${selector} .pagination").firstElement())
$("${selector} .pagination .next a").click()
assert $("${selector} .pagination .current").text().trim() == "2"
takeScreenshot($(selector).firstElement(), "The component should be on second page")
  • And Can select page 3

1
2
3
4
scrollIntoView($("${selector} .pagination").firstElement())
$("${selector} .pagination .next a").click()
assert $("${selector} .pagination .current").text().trim() == "3"
takeScreenshot($(selector).firstElement(), "The component should be on third page")
  • And Only previous link exists on last page, without next link

1
2
3
scrollIntoView($("${selector} .pagination").firstElement())
assert !$("${selector} .pagination .next").isDisplayed()
assert $("${selector} .pagination .previous").isDisplayed()
  • And Can select previous page

1
2
3
4
scrollIntoView($("${selector} .pagination").firstElement())
$("${selector} .pagination .previous a").click()
assert $("${selector} .pagination .current").text().trim() == "2"
takeScreenshot($(selector).firstElement(), "The component should be on forth page")
  • Where: Browser size width: 1366 and height: 1024

The following problems occurred:
Condition not satisfied:

$("${selector} li").size() == 2
|   |               |      |
|   #newslist2      10     false
[[[RemoteWebDriver: chrome on LINUX (344ae6bde7271fdb2bbbc1d742ebe779)] -> css selector: #newslist2 li], [[RemoteWebDriver: chrome on LINUX (344ae6bde7271fdb2bbbc1d742ebe779)] -> css selector: #newslist2 li], [[RemoteWebDriver: chrome on LINUX (344ae6bde7271fdb2bbbc1d742ebe779)] -> css selector: #newslist2 li], [[RemoteWebDriver: chrome on LINUX (344ae6bde7271fdb2bbbc1d742ebe779)] -> css selector: #newslist2 li], [[RemoteWebDriver: chrome on LINUX (344ae6bde7271fdb2bbbc1d742ebe779)] -> css selector: #newslist2 li], [[RemoteWebDriver: chrome on LINUX (344ae6bde7271fdb2bbbc1d742ebe779)] -> css selector: #newslist2 li], [[RemoteWebDriver: chrome on LINUX (344ae6bde7271fdb2bbbc1d742ebe779)] -> css selector: #newslist2 li], [[RemoteWebDriver: chrome on LINUX (344ae6bde7271fdb2bbbc1d742ebe779)] -> css selector: #newslist2 li], [[RemoteWebDriver: chrome on LINUX (344ae6bde7271fdb2bbbc1d742ebe779)] -> css selector: #newslist2 li], [[RemoteWebDriver: chrome on LINUX (344ae6bde7271fdb2bbbc1d742ebe779)] -> css selector: #newslist2 li]]