Пример #1
0
 @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
 @Test
 public void successfulSignUp() {
   SignUpResultPage resultPage =
       signUpPage.signUp(correctName, password, password, "", correctEmail);
   Assert.assertEquals(Source.getValue("SignUpSuccess"), resultPage.getMessageText());
 }