예제 #1
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());
 }
예제 #2
0
파일: SignUpTests.java 프로젝트: samkiev/GL
 @Test
 public void successfulSignUp() {
   SignUpResultPage resultPage =
       signUpPage.signUp(correctName, password, password, "", correctEmail);
   Assert.assertEquals(Source.getValue("SignUpSuccess"), resultPage.getMessageText());
 }