Esempio n. 1
0
        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();
        }
Esempio n. 2
0
        public void TestMethod1()
        {
            //Successful login
            var loginPage = new LoginPageElements(_driver);

            loginPage.EnterEmail(username);
            loginPage.EnterPassword(password);
            loginPage.ClickLoginButton();
            loginPage.CheckWeAreLoggedIn().Should().BeTrue();
        }
Esempio n. 3
0
        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();
        }