fix e2e protractor (#6962)

This commit is contained in:
Eugenio Romano
2021-04-28 14:03:30 +01:00
committed by GitHub
parent dd5fc685b8
commit 42c81e46bb
2 changed files with 17 additions and 16 deletions

View File

@@ -280,26 +280,26 @@ exports.config = {
await LocalStorageUtil.apiReset();
function disableCSSAnimation() {
const css = '* {' +
'-webkit-transition-duration: 0s !important;' +
'transition-duration: 0s !important;' +
'-webkit-animation-duration: 0s !important;' +
'animation-duration: 0s !important;' +
'}';
const head = document.head || document.getElementsByTagName('head')[0];
const style = document.createElement('style');
style.type = 'text/css';
style.appendChild(document.createTextNode(css));
head.appendChild(style);
}
} else {
Logger.error(`====== Demo shell not able to start ======`);
process.exit();
}
function disableCSSAnimation() {
const css = '* {' +
'-webkit-transition-duration: 0s !important;' +
'transition-duration: 0s !important;' +
'-webkit-animation-duration: 0s !important;' +
'animation-duration: 0s !important;' +
'}';
const head = document.head || document.getElementsByTagName('head')[0];
const style = document.createElement('style');
style.type = 'text/css';
style.appendChild(document.createTextNode(css));
head.appendChild(style);
}
},
afterLaunch: async function (statusCode) {