Skip to content

Commit

Permalink
reduced nuber of selected alert to delete to a single one
Browse files Browse the repository at this point in the history
  • Loading branch information
YulNaumenko committed Dec 17, 2020
1 parent a87464f commit f200311
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {
const namePrefix = generateUniqueKey();
let count = 0;
const createdAlertsFirstPage = await Promise.all(
times(2, () => createAlert({ name: `${namePrefix}-0${count++}` }))
times(1, () => createAlert({ name: `${namePrefix}-0${count++}` }))
);
await refreshAlertsList();
await pageObjects.triggersActionsUI.searchAlerts(namePrefix);
Expand All @@ -371,7 +371,7 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {

await retry.tryForTime(30000, async () => {
const toastTitle = await pageObjects.common.closeToast();
expect(toastTitle).to.eql('Deleted 2 alerts');
expect(toastTitle).to.eql('Deleted 1 alert');
});

await pageObjects.triggersActionsUI.searchAlerts(namePrefix);
Expand Down

0 comments on commit f200311

Please sign in to comment.