def click_sign_in(self): """ Press the Sign In button in the header. """ next_page = LoginPage(self.browser) self.q(css='.action-signin')[0].click() return next_page.wait_for_page()
def click_sign_in(self): """ Press the Sign In button in the header. """ next_page = LoginPage(self.browser) self.q(css='.action-signin')[0].click() return next_page.wait_for_page()
def setUp(self): super(SignUpAndSignInTest, self).setUp() self.sign_up_page = SignupPage(self.browser) self.login_page = LoginPage(self.browser) self.course_outline_page = CourseOutlinePage( self.browser, self.course_info['org'], self.course_info['number'], self.course_info['run'] ) self.course_outline_sign_in_redirect_page = CourseOutlineSignInRedirectPage( self.browser, self.course_info['org'], self.course_info['number'], self.course_info['run'] ) self.course_fixture = CourseFixture( self.course_info['org'], self.course_info['number'], self.course_info['run'], self.course_info['display_name'], ) self.user = None
def setUp(self): super(LoggedOutTest, self).setUp() self.pages = [ LoginPage(self.browser), IndexPage(self.browser), SignupPage(self.browser) ]