diff --git a/pages/header_page.py b/pages/header_page.py index ab81740361..6fc01417dc 100644 --- a/pages/header_page.py +++ b/pages/header_page.py @@ -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") diff --git a/test_data/header_data.py b/test_data/header_data.py index d5f27dbe31..158e7c33ea 100644 --- a/test_data/header_data.py +++ b/test_data/header_data.py @@ -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" diff --git a/tests/header_test.py b/tests/header_test.py index da2bb899ea..727a244341 100644 --- a/tests/header_test.py +++ b/tests/header_test.py @@ -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""")