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
1 change: 1 addition & 0 deletions pages/header_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -591,6 +591,7 @@ def get_list_of_auth_icons(self):

@allure.step("Check all icons are visible in the Header for an authorized user")
def check_auth_icons_visibility(self):
self.click_more_button()
return all(icon.is_displayed() for icon in self.get_list_of_auth_icons())

@allure.step("Get attribute 'xmlns' of icons in the Header for an authorized user")
Expand Down
2 changes: 1 addition & 1 deletion test_data/header_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class HeaderData:

link_status_codes = (200,)

icons_xmlns = ("http://www.w3.org/2000/svg",)
# icons_xmlns = ("http://www.w3.org/2000/svg",)
logo_image_xmlns = "http://www.w3.org/2000/svg"

profile_avatar_src = f"{s}pictures/avatars/avatar%201.png"
Expand Down
6 changes: 1 addition & 5 deletions tests/header_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,17 +396,13 @@ def test_hpa_04_02_verify_auth_logo_image_size(self, driver, auto_test_user_auth
assert logo_image_size_change, "The 'Logo' image size is changed"
assert logo_image_invisibility, "The 'Logo' image is hidden"

@allure.title("Verify presence, visibility, attributes of icons in the Header for an authorized user")
@allure.title("Verify presence, visibility of icons in the Header for an authorized user")
def test_hpa_04_03_verify_auth_icons(self, driver, auto_test_user_authorized):
page = hPage(driver)
icons_presence = page.get_list_of_auth_icons()
icons_visibility = page.check_auth_icons_visibility()
icons_xmlns = page.get_auth_icons_xmlns()
assert icons_presence, "Icons in the Header are absent"
assert icons_visibility, "Icons in the Header are invisible"
assert icons_xmlns, "The 'xmlns' attribute value of icons in the Header are empty"
assert all(element in hPD.icons_xmlns for element in icons_xmlns), \
"The 'xmlns' attribute value of some icons is empty or invalid"

@allure.title("""Verify presence, visibility and attributes of the profile avatar in the Header
for an authorized user""")
Expand Down
Loading