mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-06-30 18:15:11 +00:00
fix e2e protractor (#6962)
This commit is contained in:
parent
dd5fc685b8
commit
42c81e46bb
@ -280,26 +280,26 @@ exports.config = {
|
|||||||
|
|
||||||
await LocalStorageUtil.apiReset();
|
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 {
|
} else {
|
||||||
Logger.error(`====== Demo shell not able to start ======`);
|
Logger.error(`====== Demo shell not able to start ======`);
|
||||||
process.exit();
|
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) {
|
afterLaunch: async function (statusCode) {
|
||||||
|
3
nx.json
3
nx.json
@ -8,7 +8,8 @@
|
|||||||
"nx.json": "*",
|
"nx.json": "*",
|
||||||
".travis.yml": "*",
|
".travis.yml": "*",
|
||||||
"demo-shell/src/index.html": "*",
|
"demo-shell/src/index.html": "*",
|
||||||
"e2e/protractor.excludes.json": "*"
|
"e2e/protractor.excludes.json": "*",
|
||||||
|
"e2e/protractor.conf.js": "*"
|
||||||
},
|
},
|
||||||
"projects": {
|
"projects": {
|
||||||
"demoshell": {
|
"demoshell": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user