Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,14 @@ export class BackendConfigurationAreaRulesPage extends Page {
}

public async updateEntityList() {
// Open the action menu first (required for type 3 area rules where the button is in a dropdown)
await browser.pause(1000);
const actionMenu = await $$('#actionMenu')[0];
await actionMenu.waitForDisplayed({ timeout: 40000 });
await actionMenu.waitForClickable({ timeout: 40000 });
await actionMenu.click();
await browser.pause(1000);

const ele = await $(`.updateEntityList`);
await ele.waitForDisplayed({ timeout: 40000 });
await ele.waitForClickable({ timeout: 40000 });
Expand Down Expand Up @@ -333,7 +341,9 @@ export class BackendConfigurationAreaRulesPage extends Page {
} else {
await (await this.entityListSaveBtn()).click();
}
await (await this.updateEntityList()).waitForClickable({ timeout: 40000 })
// Wait for the action menu button to be clickable again (instead of opening the menu)
const actionMenu = await $$('#actionMenu')[0];
await actionMenu.waitForClickable({ timeout: 40000 });
}

public async editEntityItem(index: number, newName: string, clickCancel = false) {
Expand Down
Loading