Skip to content

Commit bfe0442

Browse files
Merge pull request #660 from Brain-up/issue_623
Issue_623_EXERCISES_WORDS_Family_RU_PAGE_structure
2 parents 467bafc + 6af32b1 commit bfe0442

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

pages/exercises_ru_words_family_page.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,10 @@ def check_list1_visibility(self):
143143
@allure.step("Check the list2 on the 5th level of nesting is present on the page")
144144
def get_list2_of_group_links(self):
145145
elements = self.elements_are_present(self.locators.PAGE_LIST2)
146-
att = [element.get_attribute("title") for element in elements]
147-
print(*att, len(att), sep='\n')
146+
# att = [element.get_attribute("title") for element in elements]
147+
# print(*att, len(att), sep='\n')
148148
return elements
149+
150+
@allure.step("Check the list2 is visible")
151+
def check_list2_visibility(self):
152+
return all(element.is_displayed() for element in self.get_list2_of_group_links())

tests/exercises_ru_words_family_page_test.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ def test_erwf_01_05_verify_page_structural_elements(self, driver, exercises_ru_w
8787
list1_on_5th_level = page.get_list1_of_breadcrumbs_links()
8888
list1_visibility = page.check_list1_visibility()
8989
list2_on_5th_level = page.get_list2_of_group_links()
90+
list2_visibility = page.check_list2_visibility()
9091
assert list1_on_5th_level, "The list1 on the 5th level is absent on the page"
9192
assert list1_visibility, "The list1 on the 5th level is invisible"
9293
assert list2_on_5th_level, "The list2 on the 5th level is absent on the page"
94+
assert list2_visibility, "The list2 on the 5th level is invisible"

0 commit comments

Comments
 (0)