[ACS-5604] viewer protected file test playwright (#3354)

* re-enable protracotr test

* viewer protected file tests

* remove navigate though pages
This commit is contained in:
Akash Rathod
2023-07-19 22:56:03 +02:00
committed by GitHub
parent f9f5834fb7
commit 9a585c1642
12 changed files with 340 additions and 61 deletions

View File

@@ -160,11 +160,10 @@ export class DataTableComponent extends BaseComponent {
*
* @param name of the data table element with which we want to double click
*/
async performClickFolderOrFileToOpen(name: string): Promise<void> {
await this.goThroughPagesLookingForRowWithName(name);
await this.getCellLinkByName(name).click();
await this.spinnerWaitForReload();
}
async performClickFolderOrFileToOpen(name: string): Promise<void> {
await this.getCellLinkByName(name).click();
await this.spinnerWaitForReload();
}
async getActionLocatorFromExpandableMenu(name: string | number, action: string): Promise<Locator> {
await this.getRowByName(name).click({ button: 'right' });
@@ -200,8 +199,8 @@ export class DataTableComponent extends BaseComponent {
async selectItem(name: string): Promise<void> {
const isSelected = await this.hasCheckMarkIcon(name);
if (!isSelected) {
const row = await this.getRowByName(name);
await row.locator('.mat-checkbox[id*="mat-checkbox"]').check();
const row = await this.getRowByName(name);
await row.locator('.mat-checkbox[id*="mat-checkbox"]').check();
}
}