def test_sign_in_with_valid_user(self): print ("\n" + str(test_cases(4))) mainPage = MainPage(self.driver) loginPage = mainPage.click_sign_in_button() result = loginPage.login_with_valid_user("valid_user") self.assertIn("yourstore/home", result.get_url())
def test_sign_in_with_in_valid_user(self): print ("\n" + str(test_cases(5))) mainPage = MainPage(self.driver) loginPage = mainPage.click_sign_in_button() result = loginPage.login_with_in_valid_user("invalid_user") self.assertIn("There was a problem with your request", result)
def test_sign_in_button(self): print ("\n" + str(test_cases(3))) page = MainPage(self.driver) loginPage = page.click_sign_in_button() self.assertIn("ap/signin", loginPage.get_url())