From 2ac5e6a3833799e0718c3fcc6250f1b10dc7170e Mon Sep 17 00:00:00 2001 From: Vito Albano Date: Wed, 20 Dec 2023 23:11:36 +0000 Subject: [PATCH] Fixed search e2es --- .../form-field/task-visibility-condition.e2e.ts | 2 +- .../task-list/task-header-cloud.e2e.ts | 2 +- e2e/search/components/search-number-range.e2e.ts | 1 + e2e/search/search-filters.e2e.ts | 2 +- .../pages/search/search-check-list.page.ts | 8 ++++---- 5 files changed, 8 insertions(+), 7 deletions(-) diff --git a/e2e/process-services-cloud/form-field/task-visibility-condition.e2e.ts b/e2e/process-services-cloud/form-field/task-visibility-condition.e2e.ts index 23d0320c6c..f6a125b883 100644 --- a/e2e/process-services-cloud/form-field/task-visibility-condition.e2e.ts +++ b/e2e/process-services-cloud/form-field/task-visibility-condition.e2e.ts @@ -107,7 +107,7 @@ describe('Task cloud visibility', async () => { await taskFormCloudComponent.formFields().checkWidgetIsHidden('Number2'); }); - fit('[C315232] Should be able to complete a process with visibility condition for boolean widgets', async () => { + it('[C315232] Should be able to complete a process with visibility condition for boolean widgets', async () => { await processCloudDemoPage.openNewProcessForm(); await startProcessPage.clearField(startProcessPage.processNameInput); await startProcessPage.selectFromProcessDropdown(browser.params.resources.ACTIVITI_CLOUD_APPS.SIMPLE_APP.processes.booleanvisibilityprocess); diff --git a/e2e/process-services-cloud/task-list/task-header-cloud.e2e.ts b/e2e/process-services-cloud/task-list/task-header-cloud.e2e.ts index 5f30a9bc22..8da08ac69d 100644 --- a/e2e/process-services-cloud/task-list/task-header-cloud.e2e.ts +++ b/e2e/process-services-cloud/task-list/task-header-cloud.e2e.ts @@ -236,7 +236,7 @@ describe('Task Header cloud component', () => { await taskHeaderCloudPage.statusCardTextItem.checkElementIsReadonly(); }); - it('[C291991] Should be able to assign a task only to the users that have access to the selected app', async () => { + fit('[C291991] Should be able to assign a task only to the users that have access to the selected app', async () => { await tasksCloudDemoPage.clickStartNewTaskButton(); const currentAssignee = await peopleCloudComponentPage.getChipAssignee(); expect(currentAssignee).toContain(testUser.firstName); diff --git a/e2e/search/components/search-number-range.e2e.ts b/e2e/search/components/search-number-range.e2e.ts index 36a9cf08fc..ad28850acd 100644 --- a/e2e/search/components/search-number-range.e2e.ts +++ b/e2e/search/components/search-number-range.e2e.ts @@ -318,6 +318,7 @@ describe('Search Number Range Filter', () => { expect(await sizeRangeFilter.getFromNumber()).toEqual(''); expect(await sizeRangeFilter.getToNumber()).toEqual(''); + await dataTable.waitTillContentLoaded(); const resultsSize = (await dataTable.geCellElementDetail('Size')) as ElementFinder[]; for (const currentResult of resultsSize) { const currentSize = await BrowserActions.getAttribute(currentResult, 'title'); diff --git a/e2e/search/search-filters.e2e.ts b/e2e/search/search-filters.e2e.ts index 91cbd57b2a..51b261ff62 100644 --- a/e2e/search/search-filters.e2e.ts +++ b/e2e/search/search-filters.e2e.ts @@ -199,7 +199,7 @@ describe('Search Filters', () => { it('[C287796] Should be able to display the correct bucket number after selecting a filter', async () => { await BrowserActions.getUrl(`${browser.baseUrl}/search;q=*`); - await searchFiltersPage.fileTypeCheckListFiltersPage().clickCheckListOption('PNG Image'); + await searchFiltersPage.fileTypeCheckListFiltersPage().clickCheckListOption('PNG'); const bucketNumberForFilter = await searchFiltersPage.fileTypeCheckListFiltersPage().getBucketNumberOfFilterType(filter.type); const resultFileNames: any = await contentList.getAllRowsColumnValues('Display name'); diff --git a/lib/testing/src/lib/protractor/content-services/pages/search/search-check-list.page.ts b/lib/testing/src/lib/protractor/content-services/pages/search/search-check-list.page.ts index 0c48389183..3d679493af 100644 --- a/lib/testing/src/lib/protractor/content-services/pages/search/search-check-list.page.ts +++ b/lib/testing/src/lib/protractor/content-services/pages/search/search-check-list.page.ts @@ -33,20 +33,20 @@ export class SearchCheckListPage { async clickCheckListOption(option: string): Promise { await BrowserVisibility.waitUntilElementIsVisible(this.filter); - const result = this.filter.$$(`mat-checkbox[data-automation-id*='${option}'] .mat-checkbox-inner-container`).first(); + const result = this.filter.$(`mat-checkbox[data-automation-id*='${option}'] input`); await BrowserActions.click(result); } async checkChipIsDisplayed(option: string): Promise { - await BrowserVisibility.waitUntilElementIsVisible(element(by.cssContainingText('mat-chip', option)).$('mat-icon')); + await BrowserVisibility.waitUntilElementIsVisible(element(by.cssContainingText('mat-chip-row', option)).$('mat-icon')); } async checkChipIsNotDisplayed(option: string): Promise { - await BrowserVisibility.waitUntilElementIsNotVisible(element(by.cssContainingText('mat-chip', option)).$('mat-icon')); + await BrowserVisibility.waitUntilElementIsNotVisible(element(by.cssContainingText('mat-chip-row', option)).$('mat-icon')); } async removeFilterOption(option: string): Promise { - const cancelChipButton = element(by.cssContainingText('mat-chip', option)).$('mat-icon'); + const cancelChipButton = element(by.cssContainingText('mat-chip-row', option)).$('mat-icon'); await BrowserActions.click(cancelChipButton); }