mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
[ADF-3372] Added toggle and global configuration to display metadata (#3636)
* [ADF-3372] Added toggle and global configuration to display metadata * [ADF-3372] Fixed typo in shcema.json * [ADF-3372] Removed unnecessary variables and variable name changed * [ADF-3372] Fixed unit test * [ADF-3372] Improved logic * [ADF-3372] Improved Metadata component html logic * [ADF-3372] Demoshell variable from app.config.json removed * [ADF-3372] fixed bugs and tests * [ADF-3372] fixed some error in tests * [ADF-3372] fixed some wrong compilation in test * [ADF-3372] fixed wrong locator * [ADF-3372] fixed randomly failing tests
This commit is contained in:
committed by
Eugenio Romano
parent
5b0b6e83bc
commit
409acbcc9e
@@ -33,12 +33,14 @@ export class ConfigEditorPage {
|
||||
clickSaveMetadataButton() {
|
||||
let saveButton = element(by.xpath('//*[@id="adf-metadata-save"]'));
|
||||
Util.waitUntilElementIsVisible(saveButton);
|
||||
Util.waitUntilElementIsClickable(saveButton);
|
||||
return saveButton.click();
|
||||
}
|
||||
|
||||
clickClearMetadataButton() {
|
||||
let clearButton = element(by.xpath('//*[@id="adf-metadata-clear"]'));
|
||||
Util.waitUntilElementIsVisible(clearButton);
|
||||
Util.waitUntilElementIsClickable(clearButton);
|
||||
return clearButton.click();
|
||||
}
|
||||
}
|
||||
|
@@ -116,11 +116,12 @@ var MetadataViewPage = function () {
|
||||
};
|
||||
|
||||
this.informationButtonIsDisplayed = function () {
|
||||
return Util.waitUntilElementIsVisible(informationSpan);
|
||||
Util.waitUntilElementIsVisible(informationButton);
|
||||
Util.waitUntilElementIsClickable(informationButton);
|
||||
};
|
||||
|
||||
this.clickOnInformationButton = function () {
|
||||
Util.waitUntilElementIsVisible(informationSpan);
|
||||
this.informationButtonIsDisplayed();
|
||||
informationButton.click();
|
||||
return this;
|
||||
};
|
||||
@@ -136,7 +137,7 @@ var MetadataViewPage = function () {
|
||||
};
|
||||
|
||||
this.clickOnPropertiesTab = function () {
|
||||
var propertiesTab = element(by.cssContainingText(".adf-info-drawer-layout-content div.mat-tab-labels div", "Properties"));
|
||||
let propertiesTab = element(by.cssContainingText(".adf-info-drawer-layout-content div.mat-tab-labels div .mat-tab-label-content", "Properties"));
|
||||
Util.waitUntilElementIsVisible(propertiesTab);
|
||||
propertiesTab.click();
|
||||
return this;
|
||||
|
Reference in New Issue
Block a user