예제 #1
0
파일: SignUpTests.java 프로젝트: samkiev/GL
 @Test
 public void passwordDidntMatchError() {
   SignUpResultPage resultPage =
       signUpPage.signUp(correctName, password, incorrectConfirmPassword, "", correctEmail);
   Assert.assertEquals(
       Source.getValue("SignUpErrorPasswordDidntMatchError"), resultPage.getErrorText());
 }
예제 #2
0
파일: SignUpTests.java 프로젝트: samkiev/GL
  @Test
  public void nameIsTakenError() {
    String userName = getExistentName();
    Assume.assumeThat(userName, CoreMatchers.notNullValue());

    SignUpResultPage resultPage = signUpPage.signUp(userName, password, password, "", correctEmail);
    Assert.assertEquals(Source.getValue("SignUpErrorNameIsTakenError"), resultPage.getErrorText());
  }
예제 #3
0
파일: SignUpTests.java 프로젝트: samkiev/GL
 @Test
 public void unsuccessfulSignUp() {
   String incorrectUserName = RandomForPages.randomStringWithInvalidSymbols();
   thrown.expectMessage("Not on the right page");
   SignUpResultPage resultPage =
       signUpPage.signUp(incorrectUserName, password, password, "", correctEmail);
   Assert.assertEquals(" Oops!", resultPage.getMessageText());
 }
예제 #4
0
파일: SignUpTests.java 프로젝트: samkiev/GL
 @Test
 public void passwordIsRequiredError() {
   SignUpResultPage resultPage = signUpPage.signUp(correctName, null, password, "", correctEmail);
   Assert.assertEquals(
       Source.getValue("SignUpErrorPasswordIsRequired"), resultPage.getErrorText());
 }
예제 #5
0
파일: SignUpTests.java 프로젝트: samkiev/GL
 @Test
 public void invalidEmailError() {
   SignUpResultPage resultPage =
       signUpPage.signUp(correctName, password, password, "", incorrectEmail);
   Assert.assertEquals(Source.getValue("SignUpErrorInvalidEmailError"), resultPage.getErrorText());
 }
예제 #6
0
파일: SignUpTests.java 프로젝트: samkiev/GL
 @Test
 public void successfulSignUp() {
   SignUpResultPage resultPage =
       signUpPage.signUp(correctName, password, password, "", correctEmail);
   Assert.assertEquals(Source.getValue("SignUpSuccess"), resultPage.getMessageText());
 }