]> WPIA git - gigi.git/blobdiff - tests/org/cacert/gigi/pages/account/TestCertificateAdd.java
upd: cleanup detection of error-messages in testCases
[gigi.git] / tests / org / cacert / gigi / pages / account / TestCertificateAdd.java
index fba274d1bf1d46f3c8f463a980b730445bd1ad49..2a1555f7adc0b34bb2b7278e709d3ee349f5cae8 100644 (file)
@@ -349,7 +349,7 @@ public class TestCertificateAdd extends ClientTest {
 
     private String[] extractFormData(HttpURLConnection uc) throws IOException, Error {
         String result = IOUtils.readURL(uc);
-        if (result.contains("<div class='bg-danger error-msgs'>")) {
+        if (hasError().matches(result)) {
             throw new OnPageError(result);
         }