mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
[ADF-3962] sso download directive automated (#4452)
* sso download directive automated * temp changes * temp changes * moving of services under lib testing and ADF-3962 automated * removed the browser sleep * cspell and linting fixes. * codacy improvements * export public-api update * remove circular dep * remove circular dep * fixes * fix user info test * fix datatable * random commit * move other string * fix lint * fix lint * fix prolem type * fix failing test * fix tag test * fix problems after rebase * fix lint * remove space * remove visibility method duplicated
This commit is contained in:
committed by
Eugenio Romano
parent
89f612bbb0
commit
4376d357ac
@@ -17,8 +17,8 @@
|
||||
|
||||
import { element, by } from 'protractor';
|
||||
|
||||
import { Util } from '../../util/util';
|
||||
import { TabsPage } from '@alfresco/adf-testing';
|
||||
import { BrowserVisibility } from '@alfresco/adf-testing';
|
||||
|
||||
export class CommentsPage {
|
||||
|
||||
@@ -32,36 +32,36 @@ export class CommentsPage {
|
||||
addCommentButton = element(by.css("[data-automation-id='comments-input-add']"));
|
||||
|
||||
getTotalNumberOfComments() {
|
||||
Util.waitUntilElementIsVisible(this.numberOfComments);
|
||||
BrowserVisibility.waitUntilElementIsVisible(this.numberOfComments);
|
||||
return this.numberOfComments.getText();
|
||||
}
|
||||
|
||||
checkUserIconIsDisplayed(position) {
|
||||
Util.waitUntilElementIsVisible(this.commentUserIcon);
|
||||
BrowserVisibility.waitUntilElementIsVisible(this.commentUserIcon);
|
||||
return this.commentUserIcon.get(position);
|
||||
}
|
||||
|
||||
getUserName(position) {
|
||||
Util.waitUntilElementIsVisible(this.commentUserName);
|
||||
BrowserVisibility.waitUntilElementIsVisible(this.commentUserName);
|
||||
return this.commentUserName.get(position).getText();
|
||||
}
|
||||
|
||||
getMessage(position) {
|
||||
Util.waitUntilElementIsVisible(this.commentMessage);
|
||||
BrowserVisibility.waitUntilElementIsVisible(this.commentMessage);
|
||||
return this.commentMessage.get(position).getText();
|
||||
}
|
||||
|
||||
getTime(position) {
|
||||
Util.waitUntilElementIsVisible(this.commentTime);
|
||||
BrowserVisibility.waitUntilElementIsVisible(this.commentTime);
|
||||
return this.commentTime.get(position).getText();
|
||||
}
|
||||
|
||||
checkCommentInputIsNotDisplayed() {
|
||||
Util.waitUntilElementIsNotVisible(this.commentInput);
|
||||
BrowserVisibility.waitUntilElementIsNotVisible(this.commentInput);
|
||||
}
|
||||
|
||||
addComment(comment) {
|
||||
Util.waitUntilElementIsVisible(this.commentInput);
|
||||
BrowserVisibility.waitUntilElementIsVisible(this.commentInput);
|
||||
this.commentInput.sendKeys(comment);
|
||||
return this.addCommentButton.click();
|
||||
}
|
||||
@@ -71,6 +71,6 @@ export class CommentsPage {
|
||||
}
|
||||
|
||||
checkCommentInputIsDisplayed() {
|
||||
Util.waitUntilElementIsVisible(this.commentInput);
|
||||
BrowserVisibility.waitUntilElementIsVisible(this.commentInput);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user