diff --git a/nightwatch.conf.js b/nightwatch.conf.js index 24dfe971e32..eca78329a5a 100644 --- a/nightwatch.conf.js +++ b/nightwatch.conf.js @@ -18,9 +18,9 @@ module.exports = { browserName : 'chrome', javascriptEnabled : true, chromeOptions : { - args : ['disable-gpu'], + args : ['disable-gpu', 'window-size=1280,1024'], w3c : false - } + }, } } } diff --git a/test/acceptance/setup.js b/test/acceptance/setup.js index eeed97b3466..123d6b3c5ec 100644 --- a/test/acceptance/setup.js +++ b/test/acceptance/setup.js @@ -30,7 +30,7 @@ Before(async function getDolApiKey() { const params = new URLSearchParams() params.set('login', adminUsername) params.set('password', adminPassword) - const apiKey = `http://localhost/dolibarr/htdocs/api/index.php/login?${params.toString()}`; + const apiKey = client.globals.backend_url + `api/index.php/login?${params.toString()}`; header['Accept'] = 'application/json' await fetch(apiKey, { method: 'GET', @@ -74,4 +74,4 @@ After(async () => { }); } } -}); \ No newline at end of file +});