mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-10-08 14:51:32 +00:00
[ADF-3378] Create automated tests for comments - Content Services PT2 (#3708)
* [ADF-3378] Create automated tests for comments - Content Services PT2 * Removing unnecessary import
This commit is contained in:
@@ -28,6 +28,7 @@ export class CommentsPage {
|
||||
commentTime = element.all(by.id('comment-time'));
|
||||
commentInput = element(by.id('comment-input'));
|
||||
addCommentButton = element(by.css("[data-automation-id='comments-input-add']"));
|
||||
commentsTab = element(by.cssContainingText("div[id*='mat-tab-label']", 'Comments'));
|
||||
|
||||
getTotalNumberOfComments() {
|
||||
Util.waitUntilElementIsVisible(this.numberOfComments);
|
||||
@@ -63,4 +64,14 @@ export class CommentsPage {
|
||||
this.commentInput.sendKeys(comment);
|
||||
return this.addCommentButton.click();
|
||||
}
|
||||
|
||||
checkCommentsTabIsSelected() {
|
||||
this.commentsTab.getAttribute('aria-selected').then((result) => {
|
||||
expect(result).toBe('true');
|
||||
});
|
||||
}
|
||||
|
||||
checkCommentInputIsDisplayed() {
|
||||
Util.waitUntilElementIsVisible(this.commentInput);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user