Always scroll down unit tests on Sauce Labs
This commit is contained in:
parent
8c7e4386af
commit
68016b22a5
|
@ -229,7 +229,7 @@ module.exports = function(grunt) {
|
||||||
options: {
|
options: {
|
||||||
username: 'openpgpjs',
|
username: 'openpgpjs',
|
||||||
key: getSauceKey,
|
key: getSauceKey,
|
||||||
urls: ['http://127.0.0.1:3000/test/unittests.html'],
|
urls: ['http://127.0.0.1:3000/test/unittests.html?saucelabs=true'],
|
||||||
build: process.env.TRAVIS_BUILD_ID,
|
build: process.env.TRAVIS_BUILD_ID,
|
||||||
testname: 'Sauce Unit Test for openpgpjs',
|
testname: 'Sauce Unit Test for openpgpjs',
|
||||||
browsers: [browser_capabilities],
|
browsers: [browser_capabilities],
|
||||||
|
|
|
@ -37,7 +37,8 @@ describe('Unit Tests', function () {
|
||||||
|
|
||||||
if (typeof window !== 'undefined') {
|
if (typeof window !== 'undefined') {
|
||||||
afterEach(function () {
|
afterEach(function () {
|
||||||
if (window.scrollY >= document.body.scrollHeight - window.innerHeight - 100) {
|
if (window.scrollY >= document.body.scrollHeight - window.innerHeight - 100
|
||||||
|
|| openpgp.config.saucelabs) {
|
||||||
window.scrollTo(0, document.body.scrollHeight);
|
window.scrollTo(0, document.body.scrollHeight);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user