本文整理匯總了Python中pages.manage_runs_page.MozTrapManageRunsPage.click_create_run_button方法的典型用法代碼示例。如果您正苦於以下問題:Python MozTrapManageRunsPage.click_create_run_button方法的具體用法?Python MozTrapManageRunsPage.click_create_run_button怎麽用?Python MozTrapManageRunsPage.click_create_run_button使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類pages.manage_runs_page.MozTrapManageRunsPage
的用法示例。
在下文中一共展示了MozTrapManageRunsPage.click_create_run_button方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: test_that_pinning_filter_on_product_version_set_defaults_in_new_run
# 需要導入模塊: from pages.manage_runs_page import MozTrapManageRunsPage [as 別名]
# 或者: from pages.manage_runs_page.MozTrapManageRunsPage import click_create_run_button [as 別名]
def test_that_pinning_filter_on_product_version_set_defaults_in_new_run(self, mozwebqa_logged_in):
product = self.create_product(mozwebqa_logged_in)
product_version_name = u'%s %s' % (product['name'], product['version']['name'])
from pages.manage_runs_page import MozTrapManageRunsPage
manage_runs_pg = MozTrapManageRunsPage(mozwebqa_logged_in)
manage_runs_pg.go_to_manage_runs_page()
filter_item = manage_runs_pg.filter_form.filter_by(lookup='productversion', value=product_version_name)
#check that filter is not orange before it's pinned
Assert.not_equal(
filter_item.get_filter_color(),
PINNED_FILTER_COLOR,
u'filter is orange before it was pinned')
filter_item.pin_filter()
#check that filter is orange after it's been pinned
Assert.equal(
filter_item.get_filter_color(),
PINNED_FILTER_COLOR,
u'pinned filter\'s color is not orange')
create_run_pg = manage_runs_pg.click_create_run_button()
Assert.equal(
create_run_pg.product_version_value,
product_version_name,
u'default product version is incorrect')
示例2: test_that_pinning_filter_on_product_version_set_defaults_in_new_run
# 需要導入模塊: from pages.manage_runs_page import MozTrapManageRunsPage [as 別名]
# 或者: from pages.manage_runs_page.MozTrapManageRunsPage import click_create_run_button [as 別名]
def test_that_pinning_filter_on_product_version_set_defaults_in_new_run(self, mozwebqa, login, product):
product_version_name = u'%s %s' % (product['name'], product['version']['name'])
manage_runs_pg = MozTrapManageRunsPage(mozwebqa)
manage_runs_pg.go_to_manage_runs_page()
filter_item = manage_runs_pg.filter_form.filter_by(lookup='productversion', value=product_version_name)
# check that filter is not orange before it's pinned
self.check_pinned_filter(filter_item, is_pinned=False)
filter_item.pin_filter()
# check that filter is orange after it's been pinned
self.check_pinned_filter(filter_item, is_pinned=True)
create_run_pg = manage_runs_pg.click_create_run_button()
assert product_version_name == create_run_pg.product_version_value