本文整理汇总了Python中common.test.acceptance.pages.studio.index.IndexPage.click_sign_in方法的典型用法代码示例。如果您正苦于以下问题:Python IndexPage.click_sign_in方法的具体用法?Python IndexPage.click_sign_in怎么用?Python IndexPage.click_sign_in使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类common.test.acceptance.pages.studio.index.IndexPage
的用法示例。
在下文中一共展示了IndexPage.click_sign_in方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: SignInHelpTest
# 需要导入模块: from common.test.acceptance.pages.studio.index import IndexPage [as 别名]
# 或者: from common.test.acceptance.pages.studio.index.IndexPage import click_sign_in [as 别名]
class SignInHelpTest(AcceptanceTest):
"""
Tests help links on 'Sign In' page
"""
def setUp(self):
super(SignInHelpTest, self).setUp()
self.index_page = IndexPage(self.browser)
self.index_page.visit()
def test_sign_in_nav_help(self):
"""
Scenario: Help link in navigation bar is working on 'Sign In' page.
Given that I am on the 'Sign In" page.
And I want help about the sign in
And I click the 'Help' in the navigation bar
Then Help link should open.
And help url should end with 'getting_started/get_started.html'
"""
sign_in_page = self.index_page.click_sign_in()
# The href we want to see in anchor help element.
href = 'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/' \
'en/open-release-ficus.master/getting_started/get_started.html'
# Assert that help link is correct.
assert_nav_help_link(
test=self,
page=sign_in_page,
href=href,
signed_in=False
)