def test_login_in(self): x = Header(self.driver) x.click_sign_in() LogIn(self.driver).log_in() user_name = Header(self.driver).get_user_name() current_url = Header(self.driver).get_current_url() self.assertEqual(user_name, "Test Test") self.assertEqual(current_url, urls.my_account)
def test_login_in_incorrect_email(self): x = Header(self.driver) x.click_sign_in() LogIn(self.driver)