public void TestMethod4() { //Unsuccessful login with empty password var loginPage = new LoginPageElements(_driver); loginPage.EnterEmail(username); loginPage.ClickLoginButton(); loginPage.CheckLoginPasswordErrorMessagesShown().Should().BeTrue(); loginPage.CheckWeAreLoggedIn().Should().BeFalse(); }
public void TestMethod1() { //Successful login var loginPage = new LoginPageElements(_driver); loginPage.EnterEmail(username); loginPage.EnterPassword(password); loginPage.ClickLoginButton(); loginPage.CheckWeAreLoggedIn().Should().BeTrue(); }
public void TestMethod2() { //Unsuccessful login with empty username and password var loginPage = new LoginPageElements(_driver); loginPage.EnterEmail(""); loginPage.EnterPassword(""); loginPage.ClickLoginButton(); loginPage.CheckLoginPasswordErrorMessagesShown().Should().BeTrue(); loginPage.CheckLoginEmailErrorMessagesShown().Should().BeTrue(); }