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

1. Summary

Total Runs Success Rate Total time Failures Errors Skipped

1

100.0%

8.012 seconds

0

0

0

2. Features

2.1. Functionality of Component with Default variant and Horizontal Badge in LG PASS

Result: PASS Time: 7.308 seconds

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

  • And >I am in the component showcase page

  • And >the component is on the showcase page

1
2
def selector = "#pagelist1"
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 with Default variant and Horizontal Badge in LG The component should be on the page

  • And Has one list items

1
assert $("${selector} li").size() == 1
  • 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")
Current

Functionality of Component with Default variant and Horizontal Badge in LG 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")
Current

Functionality of Component with Default variant and Horizontal Badge in LG 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")
Current

Functionality of Component with Default variant and Horizontal Badge in LG The component should be on third page

  • And Can select page 4

1
2
3
4
scrollIntoView($("${selector} .pagination").firstElement())
$("${selector} > .pagination > .next > a").click()
assert $("${selector} .pagination .current").text().trim() == "4"
takeScreenshot($(selector).firstElement(), "The component should be on forth page")
Current

Functionality of Component with Default variant and Horizontal Badge in LG The component should be on forth page

  • And Can select page 5

1
2
3
4
scrollIntoView($("${selector} .pagination").firstElement())
$("${selector} > .pagination > .next > a").click()
assert $("${selector} .pagination .current").text().trim() == "5"
takeScreenshot($(selector).firstElement(), "The component should be on fifth page")
Current

Functionality of Component with Default variant and Horizontal Badge in LG The component should be on fifth 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()
  • Where: Browser size width: 1366 and height: 1024