Skip to content

Commit 770d426

Browse files
ref test_hpu_03_01_verify_unauth_header_links
update header_page.py, header_test.py #268
1 parent 35c9e4d commit 770d426

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

pages/header_page.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ def get_text_in_ru_en_buttons(self):
321321
# Checks of links in the Header
322322
@allure.step("Check if links are clickable in the Header for an unauthorized user")
323323
def check_links_clickability_unauth(self):
324-
return all(link.is_enabled() for link in self.get_list_of_links_unauth())
324+
return all(link.is_enabled() for link in self.get_list_of_links_unauth()[:9])
325325

326326
@allure.step("Check if links are clickable in the Header for an authorized user")
327327
def check_links_clickability_auth(self):

tests/header_test.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,9 @@ def test_hpu_03_01_verify_unauth_header_links(self, driver, main_page_open):
107107
links_clickability = page.check_links_clickability_unauth()
108108
tg_link_title = page.get_tg_link_title()
109109
links_href = page.get_links_href_unauth()
110+
print(*links_href)
110111
link_status_codes = page.get_links_status_codes_unauth()
112+
print(*link_status_codes)
111113
assert links_clickability, "Links are unclickable"
112114
assert tg_link_title, "The link title value is empty"
113115
assert tg_link_title in hPD.link_titles, "The link title mismatches the valid value"

0 commit comments

Comments
 (0)