window-size is kept fixed for acceptance tests run

This commit is contained in:
jasson99 2020-10-15 17:22:47 +05:45
parent 844c4dec4d
commit 15dfcdb8e3
2 changed files with 4 additions and 4 deletions

View File

@ -18,9 +18,9 @@ module.exports = {
browserName : 'chrome',
javascriptEnabled : true,
chromeOptions : {
args : ['disable-gpu'],
args : ['disable-gpu', 'window-size=1280,1024'],
w3c : false
}
},
}
}
}

View File

@ -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 () => {
});
}
}
});
});