From 4b01c3ec54fe5cebb1c7db6fc722d01066370ee6 Mon Sep 17 00:00:00 2001 From: Riya Saxena Date: Thu, 1 Aug 2024 11:25:12 -0700 Subject: [PATCH] fix tests with security enabled Signed-off-by: Riya Saxena --- .../1_email_senders_and_groups.spec.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cypress/integration/plugins/notifications-dashboards/1_email_senders_and_groups.spec.js b/cypress/integration/plugins/notifications-dashboards/1_email_senders_and_groups.spec.js index 9b89ac3ab..231dc6a36 100644 --- a/cypress/integration/plugins/notifications-dashboards/1_email_senders_and_groups.spec.js +++ b/cypress/integration/plugins/notifications-dashboards/1_email_senders_and_groups.spec.js @@ -271,6 +271,10 @@ describe('Test create, edit and delete recipient group', () => { }); it('deletes recipient groups', () => { + cy.wait(NOTIFICATIONS_DELAY); + cy.get('tbody > tr').should(($tr) => { + expect($tr, '1 row').to.have.length(1); + }); cy.get('[data-test-subj="checkboxSelectAll"]').click({ force: true }); cy.wait(NOTIFICATIONS_DELAY); cy.get('[data-test-subj="recipient-groups-table-delete-button"]').click({