mirror of
https://github.com/TrentSPalmer/hugo_themes_report.git
synced 2024-12-04 16:41:31 -08:00
add test_description_per_min_hugo_version.py
This commit is contained in:
parent
8cf060247c
commit
441573c82d
30
test/test_description_per_min_hugo_version.py
Normal file
30
test/test_description_per_min_hugo_version.py
Normal file
@ -0,0 +1,30 @@
|
||||
from test.test_description import TestDescription
|
||||
from unittest import TestCase
|
||||
|
||||
|
||||
class TestDescriptionPerMinHugoVersion(TestDescription, TestCase):
|
||||
def test_min_hug_version(self):
|
||||
|
||||
self.driver.find_element_by_id('button-for-filter-by-minver').click()
|
||||
|
||||
minVerSelectionRow = self.driver.find_element_by_id(
|
||||
'minVerSelectionRow'
|
||||
)
|
||||
|
||||
inputs = [
|
||||
x.get_attribute(
|
||||
'id'
|
||||
) for x in minVerSelectionRow.find_elements_by_tag_name(
|
||||
'input'
|
||||
)
|
||||
]
|
||||
|
||||
for x in inputs:
|
||||
button = self.driver.find_element_by_id(
|
||||
x
|
||||
).find_element_by_xpath('..')
|
||||
|
||||
self.min_ver = button.find_element_by_tag_name('label').text
|
||||
|
||||
button.click()
|
||||
self.coalesced_text_test()
|
Loading…
Reference in New Issue
Block a user