Skip to content
This repository has been archived by the owner on Dec 18, 2019. It is now read-only.

Commit

Permalink
added sleep command to stabilise tests
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-bromann committed May 12, 2015
1 parent a522774 commit 1e3c586
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .travis.yml
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion test/spec/imageCapturing.js
Expand Up @@ -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();
});
});
Expand Down

0 comments on commit 1e3c586

Please sign in to comment.