@@ -361,12 +361,15 @@ def test_hpa_03_03_verify_auth_external_links_lead_to_proper_pages(self, driver,
361361 assert all (element in hPD .set_auth for element in opened_pages ), \
362362 "Some of external links lead to incorrect pages after clicking"
363363
364- @allure .title ("""Verify if external Telegram link #1 in the Header for an authorized user
365- leads to a correct page after click""" )
366- def test_hpa_03_03_01_verify_auth_Telegram_link1_navigation (self , driver , auto_test_user_authorized ):
367- page = hPage (driver )
368- opened_page = page .click_on_Telegram_link_auth1 ()
369- assert opened_page in hPD .set_auth , "The Telegram link leads to an incorrect page after clicking"
364+ @allure .title ("""Verify if external Telegram links #1,2 in the Header for an authorized user
365+ lead to the correct page after click""" )
366+ def test_hpa_03_03_01_verify_auth_telegram_links_navigation (self , driver , auto_test_user_authorized ):
367+ page = hPage (driver )
368+ opened_page1 = page .click_on_Telegram_link_auth1 ()
369+ opened_page2 = page .click_on_Telegram_link_auth2 ()
370+ assert opened_page1 in hPD .set_auth , "The Telegram link #1 leads to an incorrect page after clicking"
371+ assert opened_page2 in hPD .set_auth , "The Telegram link #2 leads to an incorrect page after clicking"
372+ assert opened_page1 == opened_page2 , "The Telegram links #1,2 are the same"
370373
371374 @allure .title ("""Verify that the Logo link on the Start Authorized Page
372375 refreshes the current page and doesn't lead to other pages after clicking""" )
0 commit comments