diff --git a/nightwatch.js b/nightwatch.js index 792bc026d4..c5da94b94e 100644 --- a/nightwatch.js +++ b/nightwatch.js @@ -32,8 +32,7 @@ module.exports = { 'javascriptEnabled': true, 'acceptSslCerts': true, 'build': 'build-' + TRAVIS_JOB_NUMBER, - 'tunnel-identifier': 'browsersolidity_tests_' + TRAVIS_JOB_NUMBER, - 'elementScrollBehavior': 1 + 'tunnel-identifier': 'browsersolidity_tests_' + TRAVIS_JOB_NUMBER } }, @@ -43,8 +42,7 @@ module.exports = { 'javascriptEnabled': true, 'acceptSslCerts': true, 'build': 'build-' + TRAVIS_JOB_NUMBER, - 'tunnel-identifier': 'browsersolidity_tests_' + TRAVIS_JOB_NUMBER, - 'elementScrollBehavior': 1 + 'tunnel-identifier': 'browsersolidity_tests_' + TRAVIS_JOB_NUMBER } }, @@ -56,8 +54,7 @@ module.exports = { 'version': '10.0', 'acceptSslCerts': true, 'build': 'build-' + TRAVIS_JOB_NUMBER, - 'tunnel-identifier': 'browsersolidity_tests_' + TRAVIS_JOB_NUMBER, - 'elementScrollBehavior': 1 + 'tunnel-identifier': 'browsersolidity_tests_' + TRAVIS_JOB_NUMBER } }, @@ -69,8 +66,7 @@ module.exports = { 'acceptSslCerts': true, 'version': '11.103', 'build': 'build-' + TRAVIS_JOB_NUMBER, - 'tunnel-identifier': 'browsersolidity_tests_' + TRAVIS_JOB_NUMBER, - 'elementScrollBehavior': 1 + 'tunnel-identifier': 'browsersolidity_tests_' + TRAVIS_JOB_NUMBER } }, @@ -81,8 +77,7 @@ module.exports = { 'desiredCapabilities': { 'browserName': 'firefox', 'javascriptEnabled': true, - 'acceptSslCerts': true, - 'elementScrollBehavior': 1 + 'acceptSslCerts': true } } } diff --git a/test-browser/helpers/init.js b/test-browser/helpers/init.js index 6cbfb50c32..1d3a9a6652 100644 --- a/test-browser/helpers/init.js +++ b/test-browser/helpers/init.js @@ -2,8 +2,6 @@ module.exports = function (browser, callback) { browser .url('http://127.0.0.1:8080/#version=builtin') .injectScript('test-browser/helpers/applytestmode.js', function () { - browser.resizeWindow(2560, 1440, () => { - browser.maximizeWindow(callback) - }) + browser.resizeWindow(2560, 1440, callback) }) }