Skip to content

Commit

Permalink
fixed failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
YulNaumenko committed Jan 5, 2021
1 parent 52518c2 commit ba86af6
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,6 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {

const headingText = await pageObjects.alertDetailsUI.getHeadingText();
expect(headingText).to.be(updatedAlertName);
await alerting.alerts.deleteAlert(alert.id);
});

it('should reset alert when canceling an edit', async () => {
Expand Down Expand Up @@ -301,7 +300,6 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {
const nameInputAfterCancel = await testSubjects.find('alertNameInput');
const textAfterCancel = await nameInputAfterCancel.getAttribute('value');
expect(textAfterCancel).to.eql(updatedAlertName);
await alerting.alerts.deleteAlert(alert.id);
});
});

Expand Down Expand Up @@ -337,7 +335,6 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {
await pageObjects.alertDetailsUI.clickViewInApp();

expect(await pageObjects.alertDetailsUI.getNoOpAppTitle()).to.be(`View Alert ${alert.id}`);
await alerting.alerts.deleteAlert(alert.id);
});

it('renders a disabled alert details view in app button', async () => {
Expand All @@ -356,7 +353,6 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {
await pageObjects.triggersActionsUI.clickOnAlertInAlertsList(alert.name);

expect(await pageObjects.alertDetailsUI.isViewInAppDisabled()).to.be(true);
await alerting.alerts.deleteAlert(alert.id);
});
});

Expand Down Expand Up @@ -598,8 +594,6 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {
await pageObjects.triggersActionsUI.clickOnAlertInAlertsList(alert.name);
});

after(async () => await alerting.alerts.deleteAlert(alert.id));

after(async () => {
await objectRemover.removeAll();
});
Expand Down

0 comments on commit ba86af6

Please sign in to comment.