mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-19 17:14:57 +00:00
[affected:*][ci:force] Fixing e2e - fixing the last ones
This commit is contained in:
parent
003b34b489
commit
7a4333edfe
@ -119,7 +119,7 @@ describe('Form Field Component - Dropdown Widget', () => {
|
|||||||
await expect(optionsSelected.toString().replace(/\s+/g, '')).toEqual([optionsToSelect].toString());
|
await expect(optionsSelected.toString().replace(/\s+/g, '')).toEqual([optionsToSelect].toString());
|
||||||
});
|
});
|
||||||
|
|
||||||
it('[C309878] Should be able to select a dropdown option, save and complete the task form', async () => {
|
fit('[C309878] Should be able to select a dropdown option, save and complete the task form', async () => {
|
||||||
const { name: dropdownOptionTaskName } = runningTasks['dropdownOptionsProcess'];
|
const { name: dropdownOptionTaskName } = runningTasks['dropdownOptionsProcess'];
|
||||||
await taskFilter.clickTaskFilter('my-tasks');
|
await taskFilter.clickTaskFilter('my-tasks');
|
||||||
await taskList.getDataTable().waitTillContentLoaded();
|
await taskList.getDataTable().waitTillContentLoaded();
|
||||||
|
@ -60,7 +60,7 @@ export class GroupCloudComponentPage {
|
|||||||
|
|
||||||
async checkSelectedGroup(group: string): Promise<boolean> {
|
async checkSelectedGroup(group: string): Promise<boolean> {
|
||||||
try {
|
try {
|
||||||
await TestElement.byText(`${materialLocators.Chip.root}[data-automation-id*="adf-cloud-group-chip-"]`, group).waitVisible();
|
await TestElement.byText(`${materialLocators.Chip.grid.row.root}[data-automation-id*="adf-cloud-group-chip-"]`, group).waitVisible();
|
||||||
return true;
|
return true;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
return false;
|
return false;
|
||||||
@ -68,11 +68,11 @@ export class GroupCloudComponentPage {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async checkGroupNotSelected(group: string): Promise<void> {
|
async checkGroupNotSelected(group: string): Promise<void> {
|
||||||
await BrowserVisibility.waitUntilElementIsNotVisible(element(by.cssContainingText(`${materialLocators.Chip.root}[data-automation-id*="adf-cloud-group-chip-"]`, group)));
|
await BrowserVisibility.waitUntilElementIsNotVisible(element(by.cssContainingText(`${materialLocators.Chip.grid.row.root}[data-automation-id*="adf-cloud-group-chip-"]`, group)));
|
||||||
}
|
}
|
||||||
|
|
||||||
async removeSelectedGroup(group: string): Promise<void> {
|
async removeSelectedGroup(group: string): Promise<void> {
|
||||||
const locator = $(`${materialLocators.Chip.root}[data-automation-id*="adf-cloud-group-chip-${group}"] ${materialLocators.Icon.root}`);
|
const locator = $(`${materialLocators.Chip.grid.row.root}[data-automation-id*="adf-cloud-group-chip-${group}"] ${materialLocators.Icon.root}`);
|
||||||
await BrowserActions.click(locator);
|
await BrowserActions.click(locator);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user