def test_click_to_logo_topmenu_item(web_driver): """Check if the action of the 'Elefant' logo is correct""" homepage = MainPage(web_driver) homepage.click_to_my_choice_topmenu_item(web_driver) homepage.click_to_logo_topmenu_item(web_driver) assert homepage.vote_button_is_enabled(web_driver)
def test_click_on_my_choise_from_mainpage_unlogined(web_driver): """Check if the action of 'МІЙ ВИБІР' button is correct - unlogined user""" homepage = MainPage(web_driver) my_choise_page = homepage.click_to_my_choice_topmenu_item() assert 'Вхід до голосування' in my_choise_page.content(web_driver)