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',
|
browserName : 'chrome',
|
||||||
javascriptEnabled : true,
|
javascriptEnabled : true,
|
||||||
chromeOptions : {
|
chromeOptions : {
|
||||||
args : ['disable-gpu'],
|
args : ['disable-gpu', 'window-size=1280,1024'],
|
||||||
w3c : false
|
w3c : false
|
||||||
}
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -30,7 +30,7 @@ Before(async function getDolApiKey() {
|
|||||||
const params = new URLSearchParams()
|
const params = new URLSearchParams()
|
||||||
params.set('login', adminUsername)
|
params.set('login', adminUsername)
|
||||||
params.set('password', adminPassword)
|
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'
|
header['Accept'] = 'application/json'
|
||||||
await fetch(apiKey, {
|
await fetch(apiKey, {
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
@ -74,4 +74,4 @@ After(async () => {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user