Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Update expected error message
Browse files Browse the repository at this point in the history
  • Loading branch information
seanf committed Feb 23, 2015
1 parent b319ce8 commit a3e7763
Showing 1 changed file with 3 additions and 10 deletions.
Expand Up @@ -161,16 +161,9 @@ public void emptyResetPasswordFieldEntries() {
.clearFields()
.resetFailure();

assertThat(resetPasswordPage.expectError("may not be empty"))
.contains("may not be empty")
.as("Empty email error is displayed");

// All are valid, but may show at random
String error = resetPasswordPage.getErrors().get(0);
assertThat(error.equals("size must be between 3 and 20") ||
error.equals("may not be empty") ||
error.equals("must match ^[a-z\\d_]{3,20}$"))
.as("The regex match for the reset password field has failed");
assertThat(resetPasswordPage.expectError("value is required"))
.contains("value is required")
.as("value is required error is displayed");
}

}

0 comments on commit a3e7763

Please sign in to comment.