mirror of
https://github.com/TrentSPalmer/hugo_themes_report.git
synced 2024-12-04 16:41:31 -08:00
add test_description_per_sort_by.py
This commit is contained in:
parent
559fcef3b2
commit
7c60b0e398
37
test/test_description_per_sort_by.py
Normal file
37
test/test_description_per_sort_by.py
Normal file
@ -0,0 +1,37 @@
|
||||
from test.test_description import TestDescription
|
||||
from unittest import TestCase
|
||||
|
||||
|
||||
class TestDescriptionPerSortBy(TestDescription, TestCase):
|
||||
def setUp(self):
|
||||
super(TestDescriptionPerSortBy, self).setUp()
|
||||
self.driver.find_element_by_id(
|
||||
'button-for-showing-sort-option').click()
|
||||
|
||||
def test_description_per_sort_by_stars(self):
|
||||
self.driver.find_element_by_id(
|
||||
'sortByStars'
|
||||
).find_element_by_xpath('..').click()
|
||||
self.sorted_by = "stars, date, name, minVer, license"
|
||||
self.coalesced_text_test()
|
||||
|
||||
def test_description_per_sort_by_License(self):
|
||||
self.driver.find_element_by_id(
|
||||
'sortByLicense'
|
||||
).find_element_by_xpath('..').click()
|
||||
self.sorted_by = "license, date, stars, name, minVer"
|
||||
self.coalesced_text_test()
|
||||
|
||||
def test_description_per_sort_by_minVer(self):
|
||||
self.driver.find_element_by_id(
|
||||
'sortByMinVer'
|
||||
).find_element_by_xpath('..').click()
|
||||
self.sorted_by = "minVer, date, stars, name, license"
|
||||
self.coalesced_text_test()
|
||||
|
||||
def test_description_per_sort_by_name(self):
|
||||
self.driver.find_element_by_id(
|
||||
'sortByName'
|
||||
).find_element_by_xpath('..').click()
|
||||
self.sorted_by = "name, date, stars, minVer, license"
|
||||
self.coalesced_text_test()
|
Loading…
Reference in New Issue
Block a user