Пример #1
0
 def test_cookies_are_http_only(self):
     login_page = LoginPage(self.driver, self.get_base_url()).load()
     login_page.login(self.user.email, self.user.password)
     self.assertEquals(self.execute_javascript('return document.cookie;'),
                       '')
Пример #2
0
 def test_cookies_are_http_only(self):
     login_page = LoginPage(self.driver, self.get_base_url()).load()
     login_page.login(self.user.email, self.user.password)
     self.assertEquals(self.execute_javascript('return document.cookie;'), '')
Пример #3
0
    def test_can_log_in(self):
        login_page = LoginPage(self.driver, self.get_base_url()).load()
        login_page.login(self.user.email, self.user.password)

        self._assert_only_session_for_user(self.user, self.get_session_id())
Пример #4
0
    def test_can_log_in(self):
        login_page = LoginPage(self.driver, self.get_base_url()).load()
        login_page.login(self.user.email, self.user.password)

        self._assert_only_session_for_user(self.user, self.get_session_id())