예제 #1
0
        public void SignUpFailed_PasswordDoesNotMatch()
        {
            var page = new SignUpPageObject(driver);

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

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

            Assert.Equal(expected, actual);
        }
예제 #2
0
        public void SignUpSuccessful()
        {
            var page = new SignUpPageObject(driver);

            page.EnterUsername(user.Username);
            page.EnterPassword(user.Password);
            page.EnterConfirmPassword(user.Password);
            page.EnterEmail(user.Email);
            page.Submit();

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

            Assert.Equal(expected, actual);
        }
예제 #3
0
 public SignUpDriver(BrowserDriver browserDriver)
 {
     _browserDriver    = browserDriver;
     _signUpPageObject = new SignUpPageObject(_browserDriver.Current);
 }