Skip to content

Commit 382cd4c

Browse files
Merge pull request #723 from Brain-up/issue_268
Issue_268_HEADER_links
2 parents 53b78a0 + dad4c19 commit 382cd4c

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

pages/header_page.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -495,6 +495,14 @@ def click_on_About_link_auth2(self):
495495
# print(current_tab_url)
496496
return current_tab_url
497497

498+
@allure.step("Click on the 'Contacts' link for AUTHORIZED user -- ACTUAL")
499+
def click_on_Contacts_link_auth(self):
500+
self.click_more_button()
501+
self.element_is_present_and_clickable(self.locators1.LINK_CONTACTS_AUTH).click()
502+
current_tab_url = self.get_current_tab_url()
503+
print(current_tab_url)
504+
return current_tab_url
505+
498506
@allure.step("""Click on external links in the Header
499507
and thereby open corresponding web pages on new tabs for AUTHORIZED user -- unusable till changing UI""")
500508
def click_on_auth_external_links_in_header(self):

tests/header_test.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,9 @@ def test_hpa_03_03_03_verify_auth_about_link2_navigation(self, driver, auto_test
407407
@allure.title("""test_hpa.03.03.04 Verify if internal Contacts link in the Header's dropdown
408408
for an authorized user leads to the correct page after clicking""")
409409
def test_hpa_03_03_04_verify_auth_contacts_link_navigation(self, driver, auto_test_user_authorized):
410-
pass
410+
page = hPage(driver)
411+
opened_page = page.click_on_Contacts_link_auth()
412+
assert opened_page in hPD.set_auth, "The Contacts link leads to an incorrect page after clicking"
411413

412414
@allure.title("""test_hpa.03.03.05 Verify if internal Specialists link in the Header's dropdown
413415
for an authorized user leads to the correct page after clicking""")

0 commit comments

Comments
 (0)