зеркало из https://github.com/mozilla/treeherder.git
Improve test_expanding_group_count by looking beyond the first result set if required (#2858)
This commit is contained in:
Родитель
2247a57d42
Коммит
4acbfb17c0
|
@ -1,3 +1,5 @@
|
|||
import itertools
|
||||
|
||||
import pytest
|
||||
|
||||
from pages.treeherder import TreeherderPage
|
||||
|
@ -6,7 +8,9 @@ from pages.treeherder import TreeherderPage
|
|||
@pytest.mark.nondestructive
|
||||
def test_expanding_group_count(base_url, selenium):
|
||||
page = TreeherderPage(selenium, base_url).open()
|
||||
group = next(g for g in page.result_sets[0].job_groups if not g.expanded)
|
||||
all_groups = list(itertools.chain.from_iterable(
|
||||
r.job_groups for r in page.result_sets))
|
||||
group = next(g for g in all_groups if not g.expanded)
|
||||
jobs = group.jobs
|
||||
group.expand()
|
||||
assert len(group.jobs) > len(jobs)
|
||||
|
|
Загрузка…
Ссылка в новой задаче