mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
window-size is kept fixed for acceptance tests run
This commit is contained in:
parent
844c4dec4d
commit
15dfcdb8e3
|
|
@ -18,9 +18,9 @@ module.exports = {
|
|||
browserName : 'chrome',
|
||||
javascriptEnabled : true,
|
||||
chromeOptions : {
|
||||
args : ['disable-gpu'],
|
||||
args : ['disable-gpu', 'window-size=1280,1024'],
|
||||
w3c : false
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 () => {
|
|||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user