mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-10-08 14:51:32 +00:00
[no-issue] Parallel run e2e and e2e common action refactoring (#4702)
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
import { element, by } from 'protractor';
|
||||
import { ElementFinder } from 'protractor/built/element';
|
||||
|
||||
import { BrowserVisibility } from '@alfresco/adf-testing';
|
||||
import { BrowserVisibility, BrowserActions } from '@alfresco/adf-testing';
|
||||
|
||||
export class InfinitePaginationPage {
|
||||
|
||||
@@ -31,16 +31,10 @@ export class InfinitePaginationPage {
|
||||
}
|
||||
|
||||
clickLoadMoreButton() {
|
||||
BrowserVisibility.waitUntilElementIsVisible(this.loadMoreButton);
|
||||
BrowserVisibility.waitUntilElementIsClickable(this.loadMoreButton);
|
||||
this.loadMoreButton.click();
|
||||
BrowserActions.click(this.loadMoreButton);
|
||||
return this;
|
||||
}
|
||||
|
||||
checkLoadMoreButtonIsDisplayed() {
|
||||
return BrowserVisibility.waitUntilElementIsVisible(this.loadMoreButton);
|
||||
}
|
||||
|
||||
checkLoadMoreButtonIsNotDisplayed() {
|
||||
return BrowserVisibility.waitUntilElementIsNotOnPage(this.loadMoreButton);
|
||||
}
|
||||
|
Reference in New Issue
Block a user