Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix e2e protractor #6962

Merged
merged 1 commit into from Apr 28, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
30 changes: 15 additions & 15 deletions e2e/protractor.conf.js
Expand Up @@ -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) {
Expand Down
3 changes: 2 additions & 1 deletion nx.json
Expand Up @@ -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": {
Expand Down