Permalink
Browse files

added sleep command to stabilise tests

  • Loading branch information...
1 parent a522774 commit 1e3c58606cfbf38e213c7a5b83a36ea28c6d8072 @christian-bromann christian-bromann committed May 12, 2015
Showing with 2 additions and 1 deletion.
  1. +1 −0 .travis.yml
  2. +1 −1 test/spec/imageCapturing.js
View
@@ -16,6 +16,7 @@ before_script:
- "curl -O http://selenium-release.storage.googleapis.com/2.43/selenium-server-standalone-2.43.1.jar"
- "java -jar selenium-server-standalone-2.43.1.jar -host 127.0.0.1 -port 4444 2>/dev/null 1>/dev/null &"
- "http-server -p 8080 &"
+ - "sleep 10"
- "if [[ $WEBDRIVERCSS_COVERAGE == '1' ]]; then ./node_modules/.bin/istanbul i lib -o lib-cov && cp lib/getPageInfo.js lib-cov && cp lib/makeScreenshot.js lib-cov && cp lib/documentScreenshot.js lib-cov && cp lib/viewportScreenshot.js lib-cov && cp lib/startSession.js lib-cov && cp lib/setScreenWidth.js lib-cov; fi"
script: "npm run-script travis"
@@ -41,7 +41,7 @@ describe('WebdriverCSS captures desired parts of a website as screenshot with sp
gm('webdrivercss/testWithoutParameter.withoutParams.baseline.png').size(function(err,size) {
should.not.exist(err);
size.width.should.be.equal(800);
- size.height.should.be.within(documentHeight, documentHeight + 20);
+ size.height.should.be.equal(documentHeight - 20);
done();
});
});

0 comments on commit 1e3c586

Please sign in to comment.