当前位置: 首页>>代码示例>>Python>>正文


Python TreeherderPage.pin_using_spacebar方法代码示例

本文整理汇总了Python中pages.treeherder.TreeherderPage.pin_using_spacebar方法的典型用法代码示例。如果您正苦于以下问题:Python TreeherderPage.pin_using_spacebar方法的具体用法?Python TreeherderPage.pin_using_spacebar怎么用?Python TreeherderPage.pin_using_spacebar使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在pages.treeherder.TreeherderPage的用法示例。


在下文中一共展示了TreeherderPage.pin_using_spacebar方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: test_clear_pinboard

# 需要导入模块: from pages.treeherder import TreeherderPage [as 别名]
# 或者: from pages.treeherder.TreeherderPage import pin_using_spacebar [as 别名]
def test_clear_pinboard(base_url, selenium):
    """Open treeherder page, pin a job and then clear the pinboard"""
    page = TreeherderPage(selenium, base_url).open()
    random.choice(page.all_jobs).click()
    page.pin_using_spacebar()
    assert 1 == len(page.pinboard.jobs)
    page.pinboard.clear_pinboard()
    assert page.pinboard.is_pinboard_open
    assert 0 == len(page.pinboard.jobs)
开发者ID:rwood-moz,项目名称:treeherder,代码行数:11,代码来源:test_pin_job.py

示例2: test_pin_job

# 需要导入模块: from pages.treeherder import TreeherderPage [as 别名]
# 或者: from pages.treeherder.TreeherderPage import pin_using_spacebar [as 别名]
def test_pin_job(base_url, selenium):
    """Open treeherder page, select first job and pin it"""
    page = TreeherderPage(selenium, base_url).open()
    job = random.choice(page.all_jobs)
    job.click()
    assert 0 == len(page.pinboard.jobs)
    page.pin_using_spacebar()
    assert 1 == len(page.pinboard.jobs)
    assert job.symbol == page.pinboard.selected_job.symbol
开发者ID:rwood-moz,项目名称:treeherder,代码行数:11,代码来源:test_pin_job.py

示例3: test_pin_a_bug

# 需要导入模块: from pages.treeherder import TreeherderPage [as 别名]
# 或者: from pages.treeherder.TreeherderPage import pin_using_spacebar [as 别名]
def test_pin_a_bug(base_url, selenium, new_user):
    """Open treeherder, log in, select unclassified job, pin job, add a bug, save and verify"""
    page = TreeherderPage(selenium, base_url).open()
    page.header.login(new_user['email'], new_user['password'])
    assert page.header.is_user_logged_in

    page.open_next_unclassified_failure()
    assert not page.job_details.is_job_bug_visible
    page.pin_using_spacebar()

    bug_id = 1164485
    page.pinboard.add_bug_to_pinned_job(bug_id)
    page.pinboard.save_bug_to_pinboard()

    message = page.notification_text
    # Removed assert that Job Details displays bug number as it often requires a page refresh to display
    assert "Bug association" in message
开发者ID:davehunt,项目名称:treeherder-tests,代码行数:19,代码来源:test_pin_job.py


注:本文中的pages.treeherder.TreeherderPage.pin_using_spacebar方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。