當前位置: 首頁>>代碼示例>>Python>>正文


Python MozTrapManageSuitesPage.click_create_suite_button方法代碼示例

本文整理匯總了Python中pages.manage_suites_page.MozTrapManageSuitesPage.click_create_suite_button方法的典型用法代碼示例。如果您正苦於以下問題:Python MozTrapManageSuitesPage.click_create_suite_button方法的具體用法?Python MozTrapManageSuitesPage.click_create_suite_button怎麽用?Python MozTrapManageSuitesPage.click_create_suite_button使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在pages.manage_suites_page.MozTrapManageSuitesPage的用法示例。


在下文中一共展示了MozTrapManageSuitesPage.click_create_suite_button方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: test_that_pinning_filters_on_product_sets_defaults_in_new_suite

# 需要導入模塊: from pages.manage_suites_page import MozTrapManageSuitesPage [as 別名]
# 或者: from pages.manage_suites_page.MozTrapManageSuitesPage import click_create_suite_button [as 別名]
    def test_that_pinning_filters_on_product_sets_defaults_in_new_suite(self, mozwebqa_logged_in):
        product = self.create_product(mozwebqa_logged_in)

        from pages.manage_suites_page import MozTrapManageSuitesPage
        manage_suites_pg = MozTrapManageSuitesPage(mozwebqa_logged_in)
        manage_suites_pg.go_to_manage_suites_page()
        filter_item = manage_suites_pg.filter_form.filter_by(lookup='product', value=product['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_suite_pg = manage_suites_pg.click_create_suite_button()

        Assert.equal(
            create_suite_pg.product_name_value,
            product['name'],
            u'default product is incorrect')
開發者ID:yoshiyokotani,項目名稱:moztrap-tests,代碼行數:30,代碼來源:test_pinning_filters.py

示例2: test_that_pinning_filters_on_product_sets_defaults_in_new_suite

# 需要導入模塊: from pages.manage_suites_page import MozTrapManageSuitesPage [as 別名]
# 或者: from pages.manage_suites_page.MozTrapManageSuitesPage import click_create_suite_button [as 別名]
    def test_that_pinning_filters_on_product_sets_defaults_in_new_suite(self, mozwebqa, login, product):
        manage_suites_pg = MozTrapManageSuitesPage(mozwebqa)
        manage_suites_pg.go_to_manage_suites_page()
        filter_item = manage_suites_pg.filter_form.filter_by(lookup='product', value=product['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_suite_pg = manage_suites_pg.click_create_suite_button()

        assert product['name'] == create_suite_pg.product_name_value
開發者ID:bobsilverberg,項目名稱:moztrap-tests,代碼行數:17,代碼來源:test_pinning_filters.py


注:本文中的pages.manage_suites_page.MozTrapManageSuitesPage.click_create_suite_button方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。