Skip to content

Commit

Permalink
[affected:*][ci:force] Fixing e2e - fixing the last ones
Browse files Browse the repository at this point in the history
  • Loading branch information
VitoAlbano committed Mar 18, 2024
1 parent 5f98028 commit 229fdd3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ describe('Form Field Component - Dropdown Widget', () => {
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'];
await taskFilter.clickTaskFilter('my-tasks');
await taskList.getDataTable().waitTillContentLoaded();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,19 +60,19 @@ export class GroupCloudComponentPage {

async checkSelectedGroup(group: string): Promise<boolean> {
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;
} catch (e) {
return false;
};
}

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

Expand Down

0 comments on commit 229fdd3

Please sign in to comment.