mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-08-07 17:48:27 +00:00
[ACS-5882] infoDrawer comments tests migrated to Playwright (#3615)
* [ACS-5882] infoDrawer comments tests migrated to Playwright * [ACS-5882] Update string names * [ACS-5882] fixed issues from pull request comments * [ACS-5882] 2nd part of fixed issues from pull request comments * [ACS-5882] added Promise void functions without return * [ACS-5882] Small naming fixes * [ACS-5882] excluding 2 tests - BE issue * [ACS-5882] Fixed one test
This commit is contained in:
@@ -49,6 +49,8 @@ export class DataTableComponent extends BaseComponent {
|
||||
emptyListSubtitle = this.getChild('.adf-empty-content__subtitle');
|
||||
emptySearchText = this.getChild('.empty-search__text');
|
||||
emptyListTest = this.getChild('adf-custom-empty-content-template');
|
||||
paginationButton = this.page.locator('.adf-pagination__block button').nth(0);
|
||||
paginationOptions = this.page.locator('#cdk-overlay-0 button');
|
||||
|
||||
/** Locator for row (or rows) */
|
||||
getRowLocator = this.getChild(`adf-datatable-row`);
|
||||
@@ -319,4 +321,9 @@ export class DataTableComponent extends BaseComponent {
|
||||
async rightClickOnItem(itemName: string): Promise<void> {
|
||||
await this.getCellByColumnNameAndRowItem(itemName, 'Name').click({ button: 'right' });
|
||||
}
|
||||
|
||||
async setPaginationTo50(): Promise<void> {
|
||||
await this.paginationButton.click();
|
||||
await this.paginationOptions.getByText("50").click();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user