Skip to content

Commit

Permalink
[Response Ops][Cases] Flaky Cases List Row Actions Update - Security (e…
Browse files Browse the repository at this point in the history
…lastic#192487)

Closes elastic#191641

Toasts are stacking up until covering the row action to be clicked next.
This PR dismiss every toast created after each test. In the status
update test this might happen as well and therefore I did add the toast
dismissal to the whole row actions test suite.
  • Loading branch information
jcger authored and markov00 committed Sep 18, 2024
1 parent e8b0982 commit c1e4642
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export default ({ getPageObject, getService }: FtrProviderContext) => {
const svlCases = getService('svlCases');
const svlSecNavigation = getService('svlSecNavigation');
const svlCommonPage = getPageObject('svlCommonPage');
const toasts = getService('toasts');

describe('Cases List', function () {
before(async () => {
Expand Down Expand Up @@ -217,6 +218,10 @@ export default ({ getPageObject, getService }: FtrProviderContext) => {
});

describe('row actions', () => {
afterEach(async () => {
await toasts.dismissAll();
});

describe('Status', () => {
createNCasesBeforeDeleteAllAfter(1, getPageObject, getService);

Expand Down

0 comments on commit c1e4642

Please sign in to comment.