mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-5366] initialize discovery and version compatibility service for oauth based session (#6864)
* [ADF-5366] initialize discovery and version compatibility service for oauth based session * better error message * * fix spaces * * revert the search service * * fix build * * check properties after type update * * check properties after type update * * check properties after type update * * fix infinite loop * * fix test without title * * wait for options * * wait for session * Update metadata-content-type.e2e.ts * Update metadata-content-type.e2e.ts * Update protractor.excludes.json * Update protractor.excludes.json
This commit is contained in:
@@ -250,13 +250,30 @@ exports.config = {
|
||||
})
|
||||
);
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
// @ts-ignore
|
||||
await browser.driver.executeScript(disableCSSAnimation);
|
||||
|
||||
// @ts-ignore
|
||||
await browser.waitForAngularEnabled(false);
|
||||
await browser.get(`${HOST}/#/settings`);
|
||||
await browser.waitForAngularEnabled(true);
|
||||
|
||||
if (typeof LocalStorageUtil.clearStorage === "function") {
|
||||
try {
|
||||
await LocalStorageUtil.clearStorage();
|
||||
// @ts-ignore
|
||||
await LocalStorageUtil.setStorageItem('ecmHost', browser.params.testConfig.appConfig.ecmHost);
|
||||
@@ -280,26 +297,10 @@ exports.config = {
|
||||
|
||||
await LocalStorageUtil.apiReset();
|
||||
|
||||
} else {
|
||||
} catch (error) {
|
||||
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) {
|
||||
|
Reference in New Issue
Block a user