Fixed search e2es

This commit is contained in:
Vito Albano
2023-12-20 23:11:36 +00:00
committed by VitoAlbano
parent 0efa4bea32
commit a2263b20cc
5 changed files with 8 additions and 7 deletions

View File

@@ -107,7 +107,7 @@ describe('Task cloud visibility', async () => {
await taskFormCloudComponent.formFields().checkWidgetIsHidden('Number2'); 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 processCloudDemoPage.openNewProcessForm();
await startProcessPage.clearField(startProcessPage.processNameInput); await startProcessPage.clearField(startProcessPage.processNameInput);
await startProcessPage.selectFromProcessDropdown(browser.params.resources.ACTIVITI_CLOUD_APPS.SIMPLE_APP.processes.booleanvisibilityprocess); await startProcessPage.selectFromProcessDropdown(browser.params.resources.ACTIVITI_CLOUD_APPS.SIMPLE_APP.processes.booleanvisibilityprocess);

View File

@@ -236,7 +236,7 @@ describe('Task Header cloud component', () => {
await taskHeaderCloudPage.statusCardTextItem.checkElementIsReadonly(); 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(); await tasksCloudDemoPage.clickStartNewTaskButton();
const currentAssignee = await peopleCloudComponentPage.getChipAssignee(); const currentAssignee = await peopleCloudComponentPage.getChipAssignee();
expect(currentAssignee).toContain(testUser.firstName); expect(currentAssignee).toContain(testUser.firstName);

View File

@@ -318,6 +318,7 @@ describe('Search Number Range Filter', () => {
expect(await sizeRangeFilter.getFromNumber()).toEqual(''); expect(await sizeRangeFilter.getFromNumber()).toEqual('');
expect(await sizeRangeFilter.getToNumber()).toEqual(''); expect(await sizeRangeFilter.getToNumber()).toEqual('');
await dataTable.waitTillContentLoaded();
const resultsSize = (await dataTable.geCellElementDetail('Size')) as ElementFinder[]; const resultsSize = (await dataTable.geCellElementDetail('Size')) as ElementFinder[];
for (const currentResult of resultsSize) { for (const currentResult of resultsSize) {
const currentSize = await BrowserActions.getAttribute(currentResult, 'title'); const currentSize = await BrowserActions.getAttribute(currentResult, 'title');

View File

@@ -199,7 +199,7 @@ describe('Search Filters', () => {
it('[C287796] Should be able to display the correct bucket number after selecting a filter', async () => { it('[C287796] Should be able to display the correct bucket number after selecting a filter', async () => {
await BrowserActions.getUrl(`${browser.baseUrl}/search;q=*`); 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 bucketNumberForFilter = await searchFiltersPage.fileTypeCheckListFiltersPage().getBucketNumberOfFilterType(filter.type);
const resultFileNames: any = await contentList.getAllRowsColumnValues('Display name'); const resultFileNames: any = await contentList.getAllRowsColumnValues('Display name');

View File

@@ -33,20 +33,20 @@ export class SearchCheckListPage {
async clickCheckListOption(option: string): Promise<void> { async clickCheckListOption(option: string): Promise<void> {
await BrowserVisibility.waitUntilElementIsVisible(this.filter); 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); await BrowserActions.click(result);
} }
async checkChipIsDisplayed(option: string): Promise<void> { async checkChipIsDisplayed(option: string): Promise<void> {
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<void> { async checkChipIsNotDisplayed(option: string): Promise<void> {
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<void> { async removeFilterOption(option: string): Promise<void> {
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); await BrowserActions.click(cancelChipButton);
} }