[Response Ops][Cases] Flaky Cases List Row Actions Update - Security (#192487)

Closes https://github.com/elastic/kibana/issues/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.
This commit is contained in:
Julian Gernun 2024-09-11 17:04:13 +02:00 committed by GitHub
parent bcef8521ce
commit 4f6f88a7f3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 () => {
@ -217,6 +218,10 @@ export default ({ getPageObject, getService }: FtrProviderContext) => {
});
describe('row actions', () => {
afterEach(async () => {
await toasts.dismissAll();
});
describe('Status', () => {
createNCasesBeforeDeleteAllAfter(1, getPageObject, getService);