Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions pages/exercises_ru_words_family_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,3 +154,7 @@ def get_list3_of_exercises_links(self):
att = [element.get_attribute("title") for element in elements]
print(*att, len(att), sep='\n')
return elements

@allure.step("Check the list3 is visible")
def check_list3_visibility(self):
return all(element.is_displayed() for element in self.get_list3_of_exercises_links())
2 changes: 2 additions & 0 deletions tests/exercises_ru_words_family_page_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,10 @@ def test_erwf_01_05_verify_page_structural_elements(self, driver, exercises_ru_w
list2_on_5th_level = page.get_list2_of_series_links()
list2_visibility = page.check_list2_visibility()
list3_on_11th_level = page.get_list3_of_exercises_links()
list3_visibility = page.check_list3_visibility()
assert list1_on_5th_level, "The list1 on the 5th level is absent on the page"
assert list1_visibility, "The list1 on the 5th level is invisible"
assert list2_on_5th_level, "The list2 on the 5th level is absent on the page"
assert list2_visibility, "The list2 on the 5th level is invisible"
assert list3_on_11th_level, "The list3 on the 11th level is absent on the page"
assert list3_visibility, "The list3 on the 11th level is invisible"