def test_title_font_family(web_driver):
    """ Check if the font family of the block content is 'sans-serif' """
    homepage = MainPage(web_driver)
    rules_pages = homepage.click_to_rules_topmenu_item(web_driver)
    assert rules_pages.title_font_family(
        web_driver
    ) == 'Segoe, Frutiger, "Frutiger Linotype", "Dejavu Sans", "Helvetica Neue", Arial, sans-serif'
def test_click_to_rules_from_mainpage(web_driver):
    """Check if the action of 'ЯКОГО СЛОНА ОБРАТИ?' on Top-Menu button is correct"""
    homepage = MainPage(web_driver)
    homepage.click_to_rules_topmenu_item(web_driver)
    assert 'ПРАВИЛА ПРОВЕДЕННЯ' in homepage.page_content(web_driver)
def test_title_font_size(web_driver):
    """ Check if font size of the title of the content is 32px """
    homepage = MainPage(web_driver)
    rules_pages = homepage.click_to_rules_topmenu_item(web_driver)
    assert rules_pages.title_font_size(web_driver) == '32px'
def test_block_content_is_enabled(web_driver):
    """ Check if the text content is enabled on the page"""
    homepage = MainPage(web_driver)
    rules_pages = homepage.click_to_rules_topmenu_item(web_driver)
    assert rules_pages.block_content_is_enabled(web_driver)
def test_existing_elephant_image(web_driver):
    """ Check if the elephant image is enable on the page """
    homepage = MainPage(web_driver)
    rules_pages = homepage.click_to_rules_topmenu_item(web_driver)
    assert rules_pages.elephant_img_is_enabled(web_driver)
def test_title_of_the_current_page(web_driver):
    """ Check if the title is appropriate """
    homepage = MainPage(web_driver)
    rules_pages = homepage.click_to_rules_topmenu_item(web_driver)
    assert rules_pages.title_text(
        web_driver) == "Голосуйте за улюбленні товари"