示例#1
0
        public void LoginSuccessful()
        {
            var page = new LoginPageObject(driver);

            page.EnterUsername(user.Username);
            page.EnterPassword(user.Password);
            page.Submit();

            var actual   = page.IsLoggedIn();
            var expected = true;

            Assert.Equal(expected, actual);
        }
示例#2
0
        public void LoginFailed_WrongPassword()
        {
            var page = new LoginPageObject(driver);

            page.EnterUsername(user.Username);
            page.EnterPassword(user.Password + "!");
            page.Submit();

            var actual   = page.IsErrorVisible();
            var expected = true;

            Assert.Equal(expected, actual);
        }