Skip to content

Commit 26c2539

Browse files
Merge pull request #694 from Brain-up/issue_268
Issue_268_HEADER_icons
2 parents 43569d4 + 34f9087 commit 26c2539

3 files changed

Lines changed: 3 additions & 6 deletions

File tree

pages/header_page.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -591,6 +591,7 @@ def get_list_of_auth_icons(self):
591591

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

596597
@allure.step("Get attribute 'xmlns' of icons in the Header for an authorized user")

test_data/header_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class HeaderData:
5959

6060
link_status_codes = (200,)
6161

62-
icons_xmlns = ("http://www.w3.org/2000/svg",)
62+
# icons_xmlns = ("http://www.w3.org/2000/svg",)
6363
logo_image_xmlns = "http://www.w3.org/2000/svg"
6464

6565
profile_avatar_src = f"{s}pictures/avatars/avatar%201.png"

tests/header_test.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -396,17 +396,13 @@ def test_hpa_04_02_verify_auth_logo_image_size(self, driver, auto_test_user_auth
396396
assert logo_image_size_change, "The 'Logo' image size is changed"
397397
assert logo_image_invisibility, "The 'Logo' image is hidden"
398398

399-
@allure.title("Verify presence, visibility, attributes of icons in the Header for an authorized user")
399+
@allure.title("Verify presence, visibility of icons in the Header for an authorized user")
400400
def test_hpa_04_03_verify_auth_icons(self, driver, auto_test_user_authorized):
401401
page = hPage(driver)
402402
icons_presence = page.get_list_of_auth_icons()
403403
icons_visibility = page.check_auth_icons_visibility()
404-
icons_xmlns = page.get_auth_icons_xmlns()
405404
assert icons_presence, "Icons in the Header are absent"
406405
assert icons_visibility, "Icons in the Header are invisible"
407-
assert icons_xmlns, "The 'xmlns' attribute value of icons in the Header are empty"
408-
assert all(element in hPD.icons_xmlns for element in icons_xmlns), \
409-
"The 'xmlns' attribute value of some icons is empty or invalid"
410406

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

0 commit comments

Comments
 (0)