Ejemplo n.º 1
0
def test_voting_if_user_is_unlogined(web_driver):
    """ Checks if the voting by unlogined user is impossible """
    homepage = MainPage(web_driver)
    vote_page = homepage.click_voting_button(web_driver)
    login_page = vote_page.choose_category('').with_subcategory(
        '').first_product(web_driver).click()
    assert "Вхід до голосування" in login_page(web_driver)
Ejemplo n.º 2
0
def test_click_to_voting_button(web_driver):
    """Check if the action of the 'Голосувати' button on the mainpage is correct"""
    homepage = MainPage(web_driver)
    vote_page = homepage.click_voting_button(web_driver)
    assert vote_page.left_menu_is_enable(web_driver) is True