From a6c537992d457ab667c873cc17e15c100a097e13 Mon Sep 17 00:00:00 2001 From: Riya <69919272+riysaxen-amzn@users.noreply.github.com> Date: Fri, 2 Aug 2024 18:18:08 -0700 Subject: [PATCH] Security notif test (#1494) * 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) --- .../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 470bd1f6b..8d0216621 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 @@ -260,9 +260,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({