mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-26 17:24:56 +00:00
* e2e fixed
This commit is contained in:
parent
262a038746
commit
374da200d2
@ -135,7 +135,7 @@ describe('CardView Component - properties', () => {
|
||||
metadataViewPage.clickOnInformationButton();
|
||||
|
||||
metadataViewPage.checkMetadataGroupIsNotExpand('EXIF');
|
||||
metadataViewPage.checkMetadataGroupIsNotExpand('properties');
|
||||
metadataViewPage.checkMetadataGroupIsExpand('properties');
|
||||
|
||||
metadataViewPage.clickMetadataGroup('properties');
|
||||
|
||||
|
@ -115,6 +115,7 @@ export class MetadataViewPage {
|
||||
|
||||
editIconClick(): promise.Promise<void> {
|
||||
BrowserVisibility.waitUntilElementIsVisible(this.editIcon);
|
||||
BrowserVisibility.waitUntilElementIsClickable(this.editIcon);
|
||||
return this.editIcon.click();
|
||||
}
|
||||
|
||||
@ -167,7 +168,7 @@ export class MetadataViewPage {
|
||||
|
||||
editPropertyIconIsDisplayed(propertyName: string) {
|
||||
const editPropertyIcon = element(by.css('mat-icon[data-automation-id="card-textitem-edit-icon-' + propertyName + '"]'));
|
||||
BrowserVisibility.waitUntilElementIsVisible(editPropertyIcon);
|
||||
BrowserVisibility.waitUntilElementIsPresent(editPropertyIcon);
|
||||
}
|
||||
|
||||
updatePropertyIconIsDisplayed(propertyName: string) {
|
||||
@ -264,13 +265,13 @@ export class MetadataViewPage {
|
||||
|
||||
checkMetadataGroupIsNotExpand(groupName: string) {
|
||||
const group = element(by.css('mat-expansion-panel[data-automation-id="adf-metadata-group-' + groupName + '"] > mat-expansion-panel-header'));
|
||||
BrowserVisibility.waitUntilElementIsVisible(group);
|
||||
BrowserVisibility.waitUntilElementIsPresent(group);
|
||||
expect(group.getAttribute('class')).not.toContain('mat-expanded');
|
||||
}
|
||||
|
||||
getMetadataGroupTitle(groupName: string): promise.Promise<string> {
|
||||
const group = element(by.css('mat-expansion-panel[data-automation-id="adf-metadata-group-' + groupName + '"] > mat-expansion-panel-header > span > mat-panel-title'));
|
||||
BrowserVisibility.waitUntilElementIsVisible(group);
|
||||
BrowserVisibility.waitUntilElementIsPresent(group);
|
||||
return group.getText();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user