def test(data):
    actions.navigate(data.env.url + 'elements/')
    actions.assert_url_contains('elements')
    golem_steps.assert_last_step_message("Assert URL contains 'elements'")
    with expected_exception(AssertionError,
                            "expected URL to contain 'incorrect'"):
        actions.assert_url_contains('incorrect')
示例#2
0
def test(data):
    suite_builder.run_suite()
    suite_builder.access_suite_execution_from_toast()
    report_execution.wait_until_execution_end()
    current_url = actions.get_current_url()
    actions.navigate(current_url + 'html/')
    actions.assert_element_text_contains(report_execution.title,
                                         'report execution - simple suite')
    actions.navigate(current_url + 'html-no-images/')
    actions.assert_element_text_contains(report_execution.title,
                                         'report execution - simple suite')
    actions.navigate(current_url + 'json/')
    assert '"totals_by_result"' in actions.get_browser().page_source
    actions.navigate(current_url + 'junit/')
    actions.assert_url_contains('/junit')
示例#3
0
def test(data):
    actions.click(page_builder.code_button)
    actions.assert_element_present(page_builder_code.preview_button)
    actions.assert_url_contains('/code/')