예제 #1
0
def test(data):
    new_name = data.suite + '_rename'
    suite_list.rename_suite(data.suite, new_name)
    assert not suite_list.suite_exists(data.suite)
    suite_list.assert_suite_exists(new_name)
    actions.refresh_page()
    suite_list.assert_suite_exists(new_name)
예제 #2
0
def test(data):
    suite_list.dismiss_no_tests_alert_if()
    # to root
    suite_one = actions.random_str()
    suite_list.add_suite(suite_one)
    suite_list.assert_suite_exists(suite_one)
    # to folder
    suite_two = '{}.{}'.format(actions.random_str(), actions.random_str())
    suite_list.add_suite(suite_two)
    suite_list.assert_suite_exists(suite_two)
    actions.refresh_page()
    suite_list.assert_suite_exists(suite_one)
    suite_list.assert_suite_exists(suite_two)
예제 #3
0
def test(data):
    suite_list.dismiss_no_tests_alert_if()
    # to root
    actions.store('suite_one', actions.random_str())
    suite_list.add_suite(data.suite_one)
    suite_list.assert_suite_exists(data.suite_one)
    # to folder
    actions.store('suite_two', 'folder1.' + actions.random_str())
    suite_list.add_suite(data.suite_two)
    suite_list.assert_suite_exists(data.suite_two)
    actions.refresh_page()
    suite_list.assert_suite_exists(data.suite_one)
    suite_list.assert_suite_exists(data.suite_two)
예제 #4
0
def test(data):
    suite_list.dismiss_no_tests_alert_if()
    new_name = data.suite + 'copy'
    suite_list.duplicate_suite(data.suite, new_name)
    suite_list.assert_suite_exists(data.suite)
    suite_list.assert_suite_exists(new_name)