mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
e2e tests for favourite directive (#4912)
* in progress - favourite directive e2e tests * in progress - favourite directive e2e tests * favourite directive e2e tests * update testcase name * updated test case names * remove unnecessary line spaces * refactored favourites to favorites
This commit is contained in:
committed by
Eugenio Romano
parent
bbe22fd2a7
commit
fadcc19eba
@@ -83,6 +83,9 @@ export class ContentServicesPage {
|
||||
downloadContent = element(by.css('button[data-automation-id*="DOWNLOAD"]'));
|
||||
siteListDropdown = element(by.css(`mat-select[data-automation-id='site-my-files-option']`));
|
||||
downloadButton = element(by.css('button[title="Download"]'));
|
||||
favoriteButton = element(by.css('button[data-automation-id="favorite"]'));
|
||||
markedFavorite = element(by.cssContainingText( 'button[data-automation-id="favorite"] mat-icon', 'star'));
|
||||
notMarkedFavorite = element(by.cssContainingText( 'button[data-automation-id="favorite"] mat-icon', 'star_border'));
|
||||
multiSelectToggle = element(by.cssContainingText('span.mat-slide-toggle-content', ' Multiselect (with checkboxes) '));
|
||||
|
||||
pressContextMenuActionNamed(actionName) {
|
||||
@@ -360,6 +363,21 @@ export class ContentServicesPage {
|
||||
return this;
|
||||
}
|
||||
|
||||
clickOnFavoriteButton() {
|
||||
BrowserActions.click(this.favoriteButton);
|
||||
return this;
|
||||
}
|
||||
|
||||
checkIsMarkedFavorite() {
|
||||
BrowserVisibility.waitUntilElementIsVisible(this.markedFavorite);
|
||||
return this;
|
||||
}
|
||||
|
||||
checkIsNotMarkedFavorite() {
|
||||
BrowserVisibility.waitUntilElementIsVisible(this.notMarkedFavorite);
|
||||
return this;
|
||||
}
|
||||
|
||||
clickOnEditFolder() {
|
||||
BrowserActions.click(this.editFolderButton);
|
||||
return this;
|
||||
|
Reference in New Issue
Block a user