mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +00:00
[ACS-6535]add e2e test suite for copy-move-actions (#3576)
* add e2e test suite for copy-action * code fix * [ACS-6457] Migrated unshare-file e2es to playwright (#3575) * [ACS-6457] Migrated unshare-file e2es to playwright * Removed only * [ACS-6457] Removed protractor file * Updated timeout * Updated timeout * Removed clickClose method * Addressed review comments * Addressed review comments * Created a separate test suit for share-actions * Remove only * rebase * code fix * code fix ---------
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
import { Locator, Page } from '@playwright/test';
|
||||
import { Locator } from '@playwright/test';
|
||||
import { ManageRulesDialogComponent } from './manageRules/manage-rules-dialog.component';
|
||||
|
||||
export enum Field {
|
||||
@@ -41,10 +41,6 @@ export enum Comparator {
|
||||
export class ConditionComponent extends ManageRulesDialogComponent {
|
||||
private getOptionLocator = (optionName: string): Locator => this.page.locator(`.cdk-overlay-pane .mat-option span`, { hasText: optionName });
|
||||
|
||||
constructor(page: Page) {
|
||||
super(page);
|
||||
}
|
||||
|
||||
private async selectField(fields: Partial<Field>, index: number): Promise<void> {
|
||||
await this.fieldDropDown.nth(index).click();
|
||||
const option = this.getOptionLocator(fields);
|
||||
|
@@ -201,13 +201,13 @@ export class DataTableComponent extends BaseComponent {
|
||||
|
||||
async goThroughPagesLookingForRowWithName(name: string | number): Promise<void> {
|
||||
await this.spinnerWaitForReload();
|
||||
if ((await this.getRowByName(name).isVisible()) || (await this.pagination.totalPageLocator.textContent()) === ' of 1 ') {
|
||||
if (await this.getRowByName(name).isVisible()) {
|
||||
return null;
|
||||
}
|
||||
|
||||
if (await this.pagination.currentPageLocator.isVisible()) {
|
||||
if ((await this.pagination.currentPageLocator.textContent()) !== ' Page 1 ') {
|
||||
await this.pagination.navigateToPage(1);
|
||||
if ((await this.pagination.currentPageLocator.textContent()) === ' of 1 ') {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
if (await this.pagination.totalPageLocator.isVisible()) {
|
||||
|
Reference in New Issue
Block a user