本文整理汇总了Python中pages.desktop.page_provider.PageProvider.click_article_preview_button方法的典型用法代码示例。如果您正苦于以下问题:Python PageProvider.click_article_preview_button方法的具体用法?Python PageProvider.click_article_preview_button怎么用?Python PageProvider.click_article_preview_button使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pages.desktop.page_provider.PageProvider
的用法示例。
在下文中一共展示了PageProvider.click_article_preview_button方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_that_article_can_be_previewed_before_submitting
# 需要导入模块: from pages.desktop.page_provider import PageProvider [as 别名]
# 或者: from pages.desktop.page_provider.PageProvider import click_article_preview_button [as 别名]
def test_that_article_can_be_previewed_before_submitting(self, mozwebqa):
kb_new_article = PageProvider(mozwebqa).new_kb_article_page()
article_info_dict = self._create_new_generic_article(kb_new_article)
kb_new_article.click_article_preview_button()
actual_preview_text = kb_new_article.article_preview_text
Assert.equal(article_info_dict['content'], actual_preview_text)
示例2: test_that_article_can_be_previewed_before_submitting
# 需要导入模块: from pages.desktop.page_provider import PageProvider [as 别名]
# 或者: from pages.desktop.page_provider.PageProvider import click_article_preview_button [as 别名]
def test_that_article_can_be_previewed_before_submitting(self, mozwebqa):
"""
Start a new knowledge base article.
Preview.
Verify the contents in the preview
"""
kb_new_article = PageProvider(mozwebqa).new_kb_article_page()
# create a new article
mock_article = MockArticle()
kb_new_article.set_article(mock_article)
kb_new_article.click_article_preview_button()
actual_preview_text = kb_new_article.article_preview_text
Assert.equal(mock_article["content"], actual_preview_text)
示例3: test_that_article_can_be_previewed_before_submitting
# 需要导入模块: from pages.desktop.page_provider import PageProvider [as 别名]
# 或者: from pages.desktop.page_provider.PageProvider import click_article_preview_button [as 别名]
def test_that_article_can_be_previewed_before_submitting(self, mozwebqa, variables):
"""
Start a new knowledge base article.
Preview.
Verify the contents in the preview
"""
user = variables['users']['default']
kb_new_article = PageProvider(mozwebqa).new_kb_article_page(
user['username'], user['password'])
# create a new article
mock_article = MockArticle()
kb_new_article.set_article(mock_article)
kb_new_article.click_article_preview_button()
actual_preview_text = kb_new_article.article_preview_text
Assert.equal(mock_article['content'], actual_preview_text)