From 5a06cc3911aa23557060efb917239c6b827c1ec7 Mon Sep 17 00:00:00 2001 From: Riya Saxena Date: Fri, 27 Sep 2024 17:25:23 -0700 Subject: [PATCH] notif integ tests Signed-off-by: Riya Saxena --- .../notifications-dashboards/2_channels.spec.js | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/cypress/integration/plugins/notifications-dashboards/2_channels.spec.js b/cypress/integration/plugins/notifications-dashboards/2_channels.spec.js index a140e117a..0d8281281 100644 --- a/cypress/integration/plugins/notifications-dashboards/2_channels.spec.js +++ b/cypress/integration/plugins/notifications-dashboards/2_channels.spec.js @@ -154,9 +154,7 @@ describe('Test create channels', () => { }); it('creates a webhook channel', () => { - cy.get('[placeholder="Enter channel name"]').type( - 'Test webhook channel' - ); + cy.get('[placeholder="Enter channel name"]').type('Test webhook channel'); cy.get('.euiSuperSelectControl').contains('Slack').click({ force: true }); cy.wait(NOTIFICATIONS_DELAY); @@ -207,9 +205,8 @@ describe('Test create channels', () => { updateLocalClusterSettings(deniedIps); - cy.get('[placeholder="Enter channel name"]').type( - 'Test denied webhook channels' - ); + cy.get('[placeholder="Enter channel name"]') + .type('Test denied webhook channels'); cy.get('.euiSuperSelectControl').contains('Slack') .click({ force: true }); @@ -230,9 +227,8 @@ describe('Test create channels', () => { .type(webhookUrl); // Send the test message - cy.get('[data-test-subj="create-channel-send-test-message-button"]').click({ - force: true, - }); + cy.get('[data-test-subj="create-channel-send-test-message-button"]') + .click({ force: true }); cy.wait(NOTIFICATIONS_DELAY); // Check for the expected error message indicating the host is denied @@ -241,8 +237,7 @@ describe('Test create channels', () => { cy.get('.euiButton__text').contains('See the full error') .click({ force: true }); cy.contains('Host of url is denied').should('exist'); - cy.get('.euiButton__text') - .contains('Close') + cy.get('.euiButton__text').contains('Close') .click({ force: true }); }); });