Skip to content

Commit

Permalink
adding dismissing toasts
Browse files Browse the repository at this point in the history
  • Loading branch information
bhavyarm committed Nov 26, 2020
1 parent 6b1bcfa commit d44b27a
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@ export default function ({ getPageObjects, getService }) {
const dashboardVisualizations = getService('dashboardVisualizations');
const testSubjects = getService('testSubjects');
const security = getService('security');
const toasts = getService('toasts');

describe('save and return work flow', () => {
before(async () => {
await toasts.dismissAllToasts();
await security.testUser.setRoles([
'test_logstash_reader',
'global_maps_all',
Expand All @@ -26,6 +28,7 @@ export default function ({ getPageObjects, getService }) {
});

after(async () => {
await toasts.dismissAllToasts();
await security.testUser.restoreDefaults();
});
describe('new map', () => {
Expand Down

0 comments on commit d44b27a

Please sign in to comment.