1.1 --- a/freemarkerdor/src/test/java/cz/xelfi/quoridor/freemarkerdor/UITest.java Sun Aug 30 15:19:24 2009 +0200
1.2 +++ b/freemarkerdor/src/test/java/cz/xelfi/quoridor/freemarkerdor/UITest.java Mon Aug 31 22:44:47 2009 +0200
1.3 @@ -104,6 +104,9 @@
1.4 if (res.indexOf("action=\"login\"") == -1) {
1.5 fail("Wrong index.html:\n" + res);
1.6 }
1.7 + if (res.toLowerCase().indexOf("error") != -1) {
1.8 + fail("There was an error:\n" + res);
1.9 + }
1.10 res = webResource.cookie(Cookie.valueOf("login=jarda")).accept("text/html").get(String.class);
1.11 if (res.indexOf("action=\"games/create\"") == -1) {
1.12 fail(res);