]> WPIA git - gigi.git/blobdiff - tests/club/wpia/gigi/pages/wot/TestVerification.java
upd: more verbose success message after verification
[gigi.git] / tests / club / wpia / gigi / pages / wot / TestVerification.java
index ef37f5980b518ba607be58bec097b744164900d9..7a6aed4ea4770fdb9a30e7dd1516c21a844c337e 100644 (file)
@@ -98,7 +98,9 @@ public class TestVerification extends ManagedTest {
 
     @Test
     public void testVerifyForm() throws IOException {
-        executeSuccess("date=" + validVerificationDateString() + "&location=testcase&countryCode=DE&certify=1&rules=1&assertion=1&points=10");
+        String body = executeSuccess("date=" + validVerificationDateString() + "&location=testcase&countryCode=DE&certify=1&rules=1&assertion=1&points=10");
+        assertThat(body, containsString("10"));
+        assertThat(body, containsString(applicantM));
     }
 
     @Test
@@ -259,9 +261,10 @@ public class TestVerification extends ManagedTest {
 
     }
 
-    private void executeSuccess(String query) throws MalformedURLException, IOException {
-        assertThat(execute(query), hasNoError());
-
+    private String executeSuccess(String query) throws MalformedURLException, IOException {
+        String response = execute(query);
+        assertThat(response, hasNoError());
+        return response;
     }
 
     private String execute(String query) throws MalformedURLException, IOException {