X-Git-Url: https://code.wpia.club/?p=gigi.git;a=blobdiff_plain;f=tests%2Fclub%2Fwpia%2Fgigi%2Fpages%2Fwot%2FTestVerification.java;h=7a6aed4ea4770fdb9a30e7dd1516c21a844c337e;hp=ef37f5980b518ba607be58bec097b744164900d9;hb=7bbff5247ab73a795555e2d4a07231064a718f40;hpb=b32e1c54d8d5ea7c415ff314c3811f30fa624602 diff --git a/tests/club/wpia/gigi/pages/wot/TestVerification.java b/tests/club/wpia/gigi/pages/wot/TestVerification.java index ef37f598..7a6aed4e 100644 --- a/tests/club/wpia/gigi/pages/wot/TestVerification.java +++ b/tests/club/wpia/gigi/pages/wot/TestVerification.java @@ -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 {