def test_filter_superseded(base_url, selenium, test_jobs): """Hide all except superseded and verify job is displayed.""" page = Treeherder(selenium, base_url).open() page.toggle_success() page.toggle_failures() page.toggle_retry() page.toggle_usercancel() page.toggle_superseded() # defaults to hidden page.toggle_in_progress() page.wait.until(lambda _: len(page.all_jobs) == 1) page.all_jobs[0].click() assert page.details_panel.job_details.result == 'superseded'
def test_default_filters(base_url, selenium, test_jobs): """Show superseded, and verify all test jobs are displayed.""" page = Treeherder(selenium, base_url).open() page.toggle_superseded() # defaults to hidden page.wait.until(lambda _: len(page.all_jobs) == len(test_jobs))