Skip to content

Commit

Permalink
Fix security notifs (#1484)
Browse files Browse the repository at this point in the history
* fix tests to work with security enabled

Signed-off-by: Riya Saxena <riysaxen@amazon.com>

* fix tests with security enabled

Signed-off-by: Riya Saxena <riysaxen@amazon.com>

* fix delete ses, smtp senders with security

Signed-off-by: Riya Saxena <riysaxen@amazon.com>

---------

Signed-off-by: Riya Saxena <riysaxen@amazon.com>
  • Loading branch information
riysaxen-amzn authored Aug 2, 2024
1 parent 48bc29a commit bb261ca
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,11 +165,14 @@ describe('Test delete senders', () => {
});

it('deletes smtp senders', () => {
cy.wait(NOTIFICATIONS_DELAY);
cy.get('.euiCheckbox__input[aria-label="Select this row"]').eq(0).click(); // ssl sender
cy.wait(NOTIFICATIONS_DELAY);
cy.get('[data-test-subj="senders-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-sender-modal-delete-button"]').click({
force: true,
Expand All @@ -178,12 +181,14 @@ describe('Test delete senders', () => {
});

it('deletes ses senders', () => {
cy.wait(NOTIFICATIONS_DELAY);
cy.get('.euiCheckbox__input[aria-label="Select this row"]').last().click(); // ses sender
cy.wait(NOTIFICATIONS_DELAY);
cy.get('[data-test-subj="ses-senders-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-sender-modal-delete-button"]').click({
force: true,
Expand Down

0 comments on commit bb261ca

Please sign in to comment.