Skip to content

Commit a0941a7

Browse files
Merge pull request #662 from Brain-up/issue_623
Issue_623_EXERCISES_WORDS_Family_RU_PAGE_structure
2 parents e214e0c + 21a2679 commit a0941a7

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

pages/exercises_ru_words_family_page.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,3 +154,7 @@ def get_list3_of_exercises_links(self):
154154
att = [element.get_attribute("title") for element in elements]
155155
print(*att, len(att), sep='\n')
156156
return elements
157+
158+
@allure.step("Check the list3 is visible")
159+
def check_list3_visibility(self):
160+
return all(element.is_displayed() for element in self.get_list3_of_exercises_links())

tests/exercises_ru_words_family_page_test.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,10 @@ def test_erwf_01_05_verify_page_structural_elements(self, driver, exercises_ru_w
8989
list2_on_5th_level = page.get_list2_of_series_links()
9090
list2_visibility = page.check_list2_visibility()
9191
list3_on_11th_level = page.get_list3_of_exercises_links()
92+
list3_visibility = page.check_list3_visibility()
9293
assert list1_on_5th_level, "The list1 on the 5th level is absent on the page"
9394
assert list1_visibility, "The list1 on the 5th level is invisible"
9495
assert list2_on_5th_level, "The list2 on the 5th level is absent on the page"
9596
assert list2_visibility, "The list2 on the 5th level is invisible"
9697
assert list3_on_11th_level, "The list3 on the 11th level is absent on the page"
98+
assert list3_visibility, "The list3 on the 11th level is invisible"

0 commit comments

Comments
 (0)