Пример #1
0
 public void ShouldBeAbleToRegisterOnSite()
 {
     var pageDriver = new PageDriver(_webDriver);
     var homePage = pageDriver.NavigateTo<HomePage>(_baseUri);
     var logInPage = homePage.ClickLogOn();
     logInPage.AssertHasRegistrationLink();
 }
Пример #2
0
        public void ShouldFailWithShortPassword()
        {
            var pageDriver = new PageDriver(_webDriver);
            var registerUserPage = pageDriver.NavigateTo<RegisterUserPage>(string.Format("{0}/Account/Register", _baseUri));

            var randomUser = generateRandomUser("short");
            var homePage = registerUserPage.RegisterUser(randomUser);
            homePage.AssertErrorMessagePresent();
        }