From dad4c19ac3fbf7f086f1aeaf7b2b136f2c4297c6 Mon Sep 17 00:00:00 2001 From: Alena Krauch Date: Mon, 10 Aug 2026 23:22:55 +0300 Subject: [PATCH] add test_hpa_03.03.04 Verify Contacts link in the Header's dropdown for an authorized user update header_test.py, header_page.py #268 --- pages/header_page.py | 8 ++++++++ tests/header_test.py | 4 +++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/pages/header_page.py b/pages/header_page.py index d6829dfb8d..1ba6c955cd 100644 --- a/pages/header_page.py +++ b/pages/header_page.py @@ -495,6 +495,14 @@ def click_on_About_link_auth2(self): # print(current_tab_url) return current_tab_url + @allure.step("Click on the 'Contacts' link for AUTHORIZED user -- ACTUAL") + def click_on_Contacts_link_auth(self): + self.click_more_button() + self.element_is_present_and_clickable(self.locators1.LINK_CONTACTS_AUTH).click() + current_tab_url = self.get_current_tab_url() + print(current_tab_url) + return current_tab_url + @allure.step("""Click on external links in the Header and thereby open corresponding web pages on new tabs for AUTHORIZED user -- unusable till changing UI""") def click_on_auth_external_links_in_header(self): diff --git a/tests/header_test.py b/tests/header_test.py index 816d0315dc..80e79cddcf 100644 --- a/tests/header_test.py +++ b/tests/header_test.py @@ -407,7 +407,9 @@ def test_hpa_03_03_03_verify_auth_about_link2_navigation(self, driver, auto_test @allure.title("""test_hpa.03.03.04 Verify if internal Contacts link in the Header's dropdown for an authorized user leads to the correct page after clicking""") def test_hpa_03_03_04_verify_auth_contacts_link_navigation(self, driver, auto_test_user_authorized): - pass + page = hPage(driver) + opened_page = page.click_on_Contacts_link_auth() + assert opened_page in hPD.set_auth, "The Contacts link leads to an incorrect page after clicking" @allure.title("""test_hpa.03.03.05 Verify if internal Specialists link in the Header's dropdown for an authorized user leads to the correct page after clicking""")