Skip to content
Open
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
11 changes: 11 additions & 0 deletions pages/header_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,17 @@ def get_dropdown_links_auth_list(self):
# print(*att1, len(att1), sep='\n')
return dropdown_auth_links

@allure.step("""Get the list of the 'Groups', 'Statistics', 'About', 'Contacts', 'Specialists', 'Contributors',
'Used Resources', 'Audiometry' links (internal links) in the 'More' dropdown in the Header for AUTHORIZED user
-- ACTUAL""")
def get_dropdown_internal_links_auth_list(self):
links1 = self.get_dropdown_links_auth_list()[:3]
links2 = self.get_dropdown_links_auth_list()[6:]
links = links1 + links2
att = [element.get_attribute("href") for element in links]
print(*att, len(att), sep='\n')
return links

@allure.step("""Get the list of the 'Telegram', 'Donate', 'GitHub' links (external links)
in the 'More' dropdown in the Header for AUTHORIZED user -- ACTUAL""")
def get_dropdown_external_links_auth_list(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 @@ -383,7 +383,9 @@ def test_hpa_03_03_verify_auth_dropdown_links_list(self, driver, auto_test_user_
@allure.title("""test_hpa.03.03.00 Verify the list of internal links in the Header's dropdown
for an authorized user""")
def test_hpa_03_03_00_verify_auth_dropdown_internal_links_list(self, driver, auto_test_user_authorized):
pass
page = hPage(driver)
internal_links_in_dropdown = page.get_dropdown_internal_links_auth_list()
assert internal_links_in_dropdown, "Internal links are not collected in the list"

@allure.title("""test_hpa.03.03.01 Verify if internal Groups link #2 in the Header's dropdown
for an authorized user leads to the correct page after clicking""")
Expand Down
Loading