mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
Fixed search e2es
This commit is contained in:
@@ -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);
|
||||||
|
@@ -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);
|
||||||
|
@@ -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');
|
||||||
|
@@ -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');
|
||||||
|
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user