Ejemplo n.º 1
0
def test_cases_dropdown(browser, login, logout):
    """Check that the font sizes are the same in the dropdown custom options menu"""
    suites_page = SuitesPage(browser)
    suites_page.wait_new_page_load()
    suites_page.suite_1st_link_click()
    suites_page.wait_new_page_load()
    cases_page = CasesPage(browser)
    cases_page.click_first_case()
    cases_page.click_mb3_first_case()
    font_sizes = [cases_page.get_css_property(locators.CasesPageLocators.RUN_TEST_OPT_LNK, "font-size"), \
                  cases_page.get_css_property(locators.CasesPageLocators.STATISTICS_OPT_LNK, "font-size"), \
                  cases_page.get_css_property(locators.CasesPageLocators.ASSIGN_OPT_LNK, "font-size")]
    assert font_sizes == ['14px', '14px', '14px']
Ejemplo n.º 2
0
def test_cases_background_color_scenario2(browser, login, logout):
    """"Verify that if cases row has not been clicked its background color should be whited out"""
    suites_page = SuitesPage(browser)
    suites_page.wait_new_page_load()
    suites_page.suite_1st_link_click()
    suites_page.wait_new_page_load()
    cases_page = CasesPage(browser)
    background_color = cases_page.get_css_property(locators.CasesPageLocators.ACTIVE_N_ROW, 'background-color')
    assert background_color == "rgba(0, 0, 0, 0)"
Ejemplo n.º 3
0
def test_statistics_table_styles(browser, login, logout):
    """Check that Statistics table is opening  with correct styles"""
    suites_page = SuitesPage(browser)
    suites_page.wait_new_page_load()
    suites_page.suite_1st_link_click()
    suites_page.wait_new_page_load()
    cases_page = CasesPage(browser)
    cases_page.click_first_case()
    cases_page.click_statistics_option()
    font_size = cases_page.get_css_property(locators.CasesPageLocators.STATTABLE, 'font-size')
    font_weight = cases_page.get_css_property(locators.CasesPageLocators.STATTABLE, 'font-weight')
    line_height = cases_page.get_css_property(locators.CasesPageLocators.STATTABLE, 'line-height')
    font_family = cases_page.get_css_property(locators.CasesPageLocators.STATTABLE, 'font-family')
    webkit_text_size_adjust = cases_page.get_css_property(locators.CasesPageLocators.STATTABLE,
                                                          'webkit-text-size-adjust')
    assert [font_size, font_weight, line_height, font_family, webkit_text_size_adjust] == ['14px', '400', '21px',
                                                                                           'Poppins, Arial, "Helvetica Neue", sans-serif',
                                                                                           '100%']
Ejemplo n.º 4
0
def test_cases_background_color_scenario1(browser, login, logout):
    """"Verify that if cases row is clicked its background color should be grayed out"""
    suites_page = SuitesPage(browser)
    suites_page.wait_new_page_load()
    suites_page.suite_1st_link_click()
    suites_page.wait_new_page_load()
    cases_page = CasesPage(browser)
    cases_page.click_first_case()
    background_color = cases_page.get_css_property(locators.CasesPageLocators.ACTIVE_N_ROW, 'background-color')
    assert background_color == "rgba(221, 221, 221, 1)"