[affected:*][ci:force] Fixing e2e - fixing the last ones

This commit is contained in:
Vito Albano 2024-03-18 02:35:30 +00:00
parent 003b34b489
commit 7a4333edfe
2 changed files with 4 additions and 4 deletions

View File

@ -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();

View File

@ -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);
} }