mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
[ACS-5725]fixed failing e2es
This commit is contained in:
@@ -33,7 +33,7 @@ export class MetadataViewPage {
|
||||
author = $(`[data-automation-id='card-textitem-value-properties.cm:author']`);
|
||||
titleProperty = $(`span[data-automation-id='card-textitem-value-properties.cm:title'] span`);
|
||||
editIcon = $(`button[data-automation-id='meta-data-card-toggle-edit']`);
|
||||
editIconGeneral = $(`button[data-automation-id='meta-data-card-toggle-generalInfo-edit']`);
|
||||
editIconGeneral = $(`button[data-automation-id='meta-data-generalInfo-edit']`);
|
||||
informationButton = $(`button[data-automation-id='meta-data-card-toggle-expand']`);
|
||||
informationSpan = $(`span[data-automation-id='meta-data-card-toggle-expand-label']`);
|
||||
informationIcon = $(`span[data-automation-id='meta-data-card-toggle-expand-label'] ~ mat-icon`);
|
||||
@@ -111,7 +111,11 @@ export class MetadataViewPage {
|
||||
await BrowserVisibility.waitUntilElementIsNotVisible(this.editIcon);
|
||||
}
|
||||
|
||||
async generaleditIconDisplayed(): Promise<void> {
|
||||
async generalEditIconDisplayed(): Promise<void> {
|
||||
await BrowserVisibility.waitUntilElementIsVisible(this.editIconGeneral);
|
||||
}
|
||||
|
||||
async generaleditIconNotDisplayed(): Promise<void> {
|
||||
await BrowserVisibility.waitUntilElementIsNotVisible(this.editIconGeneral);
|
||||
}
|
||||
|
||||
@@ -120,7 +124,7 @@ export class MetadataViewPage {
|
||||
}
|
||||
|
||||
async editIconGeneralClick(): Promise<void> {
|
||||
await BrowserActions.clickExecuteScript('button[data-automation-id="meta-data-card-toggle-generalInfo-edit"]');
|
||||
await BrowserActions.clickExecuteScript('button[data-automation-id="meta-data-generalInfo-edit"]');
|
||||
}
|
||||
|
||||
async informationButtonIsDisplayed(): Promise<void> {
|
||||
@@ -222,9 +226,7 @@ export class MetadataViewPage {
|
||||
}
|
||||
|
||||
async getMetadataGroupTitle(groupName: string): Promise<string> {
|
||||
const group = $(
|
||||
'mat-expansion-panel[data-automation-id="adf-metadata-group-' + groupName + '"] > mat-expansion-panel-header > span > mat-panel-title'
|
||||
);
|
||||
const group = $('mat-expansion-panel[data-automation-id="adf-metadata-group-' + groupName + '"] > mat-expansion-panel-header > span > div > mat-panel-title');
|
||||
return BrowserActions.getText(group);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user