diff --git a/e2e/protractor.conf.js b/e2e/protractor.conf.js index 48e9efdf87..cc31ecf407 100644 --- a/e2e/protractor.conf.js +++ b/e2e/protractor.conf.js @@ -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) { diff --git a/nx.json b/nx.json index 0710eb53b2..e3730e864f 100644 --- a/nx.json +++ b/nx.json @@ -8,7 +8,8 @@ "nx.json": "*", ".travis.yml": "*", "demo-shell/src/index.html": "*", - "e2e/protractor.excludes.json": "*" + "e2e/protractor.excludes.json": "*", + "e2e/protractor.conf.js": "*" }, "projects": { "demoshell": {