From cd227a655bb65d9aaac516164b2eaace548a94d1 Mon Sep 17 00:00:00 2001 From: "opensearch-trigger-bot[bot]" <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Date: Mon, 5 Aug 2024 10:14:25 +0800 Subject: [PATCH] Security notif test (#1494) (#1496) * fix tests to work with security enabled Signed-off-by: Riya Saxena * fix tests with security enabled Signed-off-by: Riya Saxena * fix delete ses, smtp senders with security Signed-off-by: Riya Saxena * fix notifications dashboards tests Signed-off-by: Riya Saxena --------- Signed-off-by: Riya Saxena Signed-off-by: Riya <69919272+riysaxen-amzn@users.noreply.github.com> (cherry picked from commit 336902be94d9ab475eb433cc62c737ea2e1deb4a) Co-authored-by: Riya <69919272+riysaxen-amzn@users.noreply.github.com> --- .../1_email_senders_and_groups.spec.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 59df1b96d..92d276176 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 @@ -265,9 +265,8 @@ 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.contains('Test recipient group').should('exist'); + cy.wait(NOTIFICATIONS_DELAY); cy.get('[data-test-subj="checkboxSelectAll"]').click({ force: true }); cy.wait(NOTIFICATIONS_DELAY); cy.get('[data-test-subj="recipient-groups-table-delete-button"]').click({