Permalink
Browse files

Fix for test.

  • Loading branch information...
1 parent 09de610 commit 24b2cb8674f1899ca209cd9f4e553b6bdc110950 @andreasrosdal andreasrosdal committed Nov 8, 2016
Showing with 3 additions and 1 deletion.
  1. +1 −1 scripts/travis-build.sh
  2. +2 −0 tests/freeciv-web-tests.js
@@ -137,7 +137,7 @@ xvfb-run casperjs --engine=phantomjs test freeciv-web-tests.js || (>&2 echo "Fre
echo "Running Freeciv-web server in autogame mode."
cp ${basedir}/publite2/pubscript_autogame.serv ${basedir}/publite2/pubscript_singleplayer.serv
killall freeciv-web
-sleep 10
+sleep 20
xvfb-run casperjs --engine=phantomjs test freeciv-web-autogame.js || (>&2 echo "Freeciv-web CasperJS autogame tests failed!" && exit 1)
echo "running pbem unit tests."
@@ -63,9 +63,11 @@ casper.test.begin('Test that Metaserver is responding.', 2, function suite(test)
casper.test.begin('Test of Freeciv-web frontpage', 3, function suite(test) {
casper.start("http://localhost", function() {
+ casper.wait(5000, function() {
test.assertHttpStatus(200);
test.assertTitleMatch(/Freeciv-web/, 'Freeciv-web title is present');
test.assertExists('#single-button');
+ });
});
casper.run(function() {

0 comments on commit 24b2cb8

Please sign in to comment.