Skip to content

Commit

Permalink
resolved merge conflicts (#87391)
Browse files Browse the repository at this point in the history
  • Loading branch information
YulNaumenko authored Jan 6, 2021
1 parent 4857bbf commit 2f975ed
Showing 1 changed file with 5 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
*/

import uuid from 'uuid';
import { times } from 'lodash';
import expect from '@kbn/expect';
import { FtrProviderContext } from '../../ftr_provider_context';

Expand Down Expand Up @@ -350,18 +349,13 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {
await deleteAlerts([createdAlert.id]);
});

it.skip('should delete all selection', async () => {
it('should delete all selection', async () => {
const namePrefix = generateUniqueKey();
let count = 0;
const createdAlertsFirstPage = await Promise.all(
times(2, () => createAlert({ name: `${namePrefix}-0${count++}` }))
);
const createdAlert = await createAlert({ name: `${namePrefix}-1` });
await refreshAlertsList();
await pageObjects.triggersActionsUI.searchAlerts(namePrefix);

for (const createdAlert of createdAlertsFirstPage) {
await testSubjects.click(`checkboxSelectRow-${createdAlert.id}`);
}
await testSubjects.click(`checkboxSelectRow-${createdAlert.id}`);

await testSubjects.click('bulkAction');

Expand All @@ -370,9 +364,9 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {
await testSubjects.click('deleteIdsConfirmation > confirmModalConfirmButton');
await testSubjects.missingOrFail('deleteIdsConfirmation');

await retry.tryForTime(30000, async () => {
await retry.try(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 2f975ed

Please sign in to comment.