Skip to content

Commit

Permalink
[fix flaky on mki] add dismiss all toasts (elastic#184659)
Browse files Browse the repository at this point in the history
## Summary

resolves: elastic#184655

Ran this from my local, against an MKI oblt cluster.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
  • Loading branch information
2 people authored and pull[bot] committed Jun 10, 2024
1 parent 8d9b7bc commit 672df4f
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export default ({ getPageObject, getService }: FtrProviderContext) => {
const svlCommonNavigation = getPageObject('svlCommonNavigation');
const svlCommonPage = getPageObject('svlCommonPage');
const svlObltNavigation = getService('svlObltNavigation');
const toasts = getService('toasts');

describe('Cases list', function () {
before(async () => {
Expand Down Expand Up @@ -258,6 +259,7 @@ export default ({ getPageObject, getService }: FtrProviderContext) => {
createNCasesBeforeDeleteAllAfter(1, getPageObject, getService);

it('deletes a case correctly', async () => {
await toasts.dismissAll();
await cases.casesTable.deleteCase(0);
await cases.casesTable.waitForTableToFinishLoading();
await cases.casesTable.validateCasesTableHasNthRows(0);
Expand Down

0 comments on commit 672df4f

Please sign in to comment.