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
8 changes: 8 additions & 0 deletions pages/header_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
4 changes: 3 additions & 1 deletion tests/header_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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""")
Expand Down
Loading