зеркало из https://github.com/mozilla/treeherder.git
14 строки
426 B
Python
14 строки
426 B
Python
import pytest
|
|
|
|
from pages.treeherder import Treeherder
|
|
|
|
|
|
@pytest.mark.parametrize('method', [('keyboard'), ('pointer')])
|
|
def test_close_info_panel(base_url, selenium, test_job, method):
|
|
page = Treeherder(selenium, base_url).open()
|
|
page.wait.until(lambda _: page.all_jobs)
|
|
page.all_jobs[0].click()
|
|
assert page.details_panel.is_open
|
|
page.details_panel.close(method)
|
|
assert not page.details_panel.is_open
|