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
2 changes: 1 addition & 1 deletion pages/header_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ def get_text_in_ru_en_buttons(self):
# Checks of links in the Header
@allure.step("Check if links are clickable in the Header for an unauthorized user")
def check_links_clickability_unauth(self):
return all(link.is_enabled() for link in self.get_list_of_links_unauth())
return all(link.is_enabled() for link in self.get_list_of_links_unauth()[:9])

@allure.step("Check if links are clickable in the Header for an authorized user")
def check_links_clickability_auth(self):
Expand Down
2 changes: 2 additions & 0 deletions tests/header_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,9 @@ def test_hpu_03_01_verify_unauth_header_links(self, driver, main_page_open):
links_clickability = page.check_links_clickability_unauth()
tg_link_title = page.get_tg_link_title()
links_href = page.get_links_href_unauth()
print(*links_href)
link_status_codes = page.get_links_status_codes_unauth()
print(*link_status_codes)
assert links_clickability, "Links are unclickable"
assert tg_link_title, "The link title value is empty"
assert tg_link_title in hPD.link_titles, "The link title mismatches the valid value"
Expand Down
Loading