From 48c273c456914c0d4dc5a0f83b554351ab1c3ad8 Mon Sep 17 00:00:00 2001 From: Riya <69919272+riysaxen-amzn@users.noreply.github.com> Date: Wed, 31 Jul 2024 20:49:25 -0700 Subject: [PATCH] fix tests to work with security enabled (#1465) Signed-off-by: Riya Saxena --- .../1_email_senders_and_groups.spec.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 30dc4bcd4..9b89ac3ab 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 @@ -276,7 +276,8 @@ describe('Test create, edit and delete recipient group', () => { cy.get('[data-test-subj="recipient-groups-table-delete-button"]').click({ force: true, }); - cy.get('input[placeholder="delete"]').type('delete'); + cy.wait(NOTIFICATIONS_DELAY); + cy.get('input[placeholder="delete"]').should('be.visible').type('delete'); cy.wait(NOTIFICATIONS_DELAY); cy.get( '[data-test-subj="delete-recipient-group-modal-delete-button"]'