mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
[ADF-5283] Fix Permission Flaky test (#6380)
* [ADF-5283] Fix Permission Flaky test * * Removed search service * * check permission for folder * * execution flow fixed * * wait for files to index * Fix e2e tests * * wait for user to index * * try something api fix * * revert back the changes * Add sleep * Refactor permission tests * bring back good things Co-authored-by: Cano <david.cano.nieto@gmail.com> Co-authored-by: Eugenio Romano <eromano@users.noreply.github.com> Co-authored-by: Eugenio Romano <eugenio.romano@alfresco.com>
This commit is contained in:
@@ -21,7 +21,7 @@ import {
|
||||
BrowserVisibility,
|
||||
BrowserActions
|
||||
} from '@alfresco/adf-testing';
|
||||
import { by, element } from 'protractor';
|
||||
import { browser, by, element } from 'protractor';
|
||||
|
||||
export class PermissionsPage {
|
||||
|
||||
@@ -43,6 +43,13 @@ export class PermissionsPage {
|
||||
await BrowserActions.click(this.closeButton);
|
||||
}
|
||||
|
||||
async changePermission(name: string, role: string): Promise<void> {
|
||||
await this.addPermissionsDialog.clickRoleDropdownByUserOrGroupName(name);
|
||||
await this.addPermissionsDialog.selectOption(role);
|
||||
await browser.sleep(500);
|
||||
await this.dataTableComponentPage.checkRowIsNotSelected('Authority ID', name);
|
||||
}
|
||||
|
||||
async checkAddPermissionButtonIsDisplayed(): Promise<void> {
|
||||
await BrowserVisibility.waitUntilElementIsVisible(this.addPermissionButton);
|
||||
}
|
||||
|
Reference in New Issue
Block a user