@@ -291,16 +291,21 @@ def test_hpa_01_03_verify_auth_header_structural_elements(self, driver, auto_tes
291291 assert logout_button_visibility , "The 'Logout' button is invisible"
292292
293293 class TestAuHdPageText :
294- @allure .title ("Verify values of the text in links, buttons in the Header for an authorized user" )
295- def test_hpa_02_01_verify_auth_text_in_links_and_buttons (self , driver , auto_test_user_authorized ):
294+ @allure .title ("test_hpa.02.01 Verify text in direct links in the Header for an authorized user" )
295+ def test_hpa_02_01_verify_text_in_direct_links_auth (self , driver , auto_test_user_authorized ):
296296 page = hPage (driver )
297297 direct_links_text = page .get_text_in_direct_links_auth ()
298+ assert direct_links_text , "Text in direct links is absent"
299+ assert all (element in hPD .links_text_auth for element in direct_links_text ), \
300+ "Text in direct links mismatches valid value"
301+
302+ @allure .title ("test_hpa.02.02 Verify text in links in 'More' button and buttons "
303+ "in the Header for an authorized user" )
304+ def test_hpa_02_02_verify_auth_text_in_links_and_buttons (self , driver , auto_test_user_authorized ):
305+ page = hPage (driver )
298306 links_in_more_text = page .get_text_of_links_in_more ()
299307 buttons_text = page .get_text_in_buttons_auth ()
300308 ru_en_buttons_text = page .get_text_in_ru_en_buttons ()
301- assert all (element in hPD .links_text_auth for element in direct_links_text [:4 ]), \
302- "Text in links in section 2 mismatches valid values"
303- assert direct_links_text , "Text in direct links is absent"
304309 assert all (element in hPD .links_text_auth for element in links_in_more_text ), \
305310 "Text in links in section 3 mismatches valid values"
306311 assert all (element in hPD .buttons_text for element in buttons_text ), \
@@ -309,7 +314,7 @@ def test_hpa_02_01_verify_auth_text_in_links_and_buttons(self, driver, auto_test
309314 "Text in 'ru-en' buttons mismatches valid values"
310315
311316 @allure .title ("Verify presence, visibility of the user name in the Header for an authorized user" )
312- def test_hpa_02_02_verify_auth_user_name (self , driver , auto_test_user_authorized ):
317+ def test_hpa_02_03_verify_auth_user_name (self , driver , auto_test_user_authorized ):
313318 page = hPage (driver )
314319 user_name_presence = page .check_user_name_presence ()
315320 user_name_visibility = page .check_user_name_visibility ()
0 commit comments