def test_clear_the_quick_filter_shortcut(base_url, selenium): """Open Treeherder, verify shortcut: CTRL + SHIFT + 'f' clears the filter search box. Open Treeherder page, filter by 'debug', verify if filter box contains the word 'debug', clear the quick filter using CTRL + SHIFT + f shortcut, verify if search box is empty. """ page = TreeherderPage(selenium, base_url).open() page.filter_by('debug') page.clear_filter(method='keyboard') assert page.search_term == ''
def test_clear_the_quick_filter_shortcut(base_url, selenium): """Open Treeherder, verify shortcut: CTRL + SHIFT + 'f' clears the filter search box. Open Treeherder page, filter by 'debug', verify if filter box contains the word 'debug', clear the quick filter using CTRL + SHIFT + f shortcut, verify if search box is empty. """ page = TreeherderPage(selenium, base_url).open() page.filter_by('debug') page.clear_filter(method='keyboard') assert page.search_term == ''
def test_filter_jobs(base_url, selenium): """Open resultset page and filter for platform""" page = TreeherderPage(selenium, base_url).open() platform = u'Linux' page.filter_by(platform) assert platform in page.result_sets[0].builds[0].platform_name page.clear_filter() platform2 = u'Windows' page.filter_by(platform2) assert platform not in page.result_sets[0].builds[0].platform_name