From 972792843b37f2e78f4a08c15224454c76b1ee4e Mon Sep 17 00:00:00 2001 From: Raju Udava <86527202+dstala@users.noreply.github.com> Date: Mon, 26 Sep 2022 20:41:23 +0530 Subject: [PATCH] test: wait for webhook page rendering to finish Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com> --- scripts/cypress/integration/common/8a_webhook.js | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/scripts/cypress/integration/common/8a_webhook.js b/scripts/cypress/integration/common/8a_webhook.js index 77f0bf6cb9..4f9e633fc7 100644 --- a/scripts/cypress/integration/common/8a_webhook.js +++ b/scripts/cypress/integration/common/8a_webhook.js @@ -16,24 +16,13 @@ function createWebhook(hook, test) { cy.get(".nc-btn-create-webhook").should("exist").click(); // hardcode "Content-type: application/json" - cy.get(".ant-tabs-tab-btn").contains("Headers").should("exist").click(); - - // kludge : as neither scrollIntoView nor scrollTo didn't yield any results - // cy.getActiveSelection().find('.ant-select-item').contains('Content-Type).scrollIntoView(); - // cy.getActiveSelection().find('.rc-virtual-list').scrollTo('center'); - // cy.getActiveSelection().select('Content-Type', { force: true }); + cy.get(`.ant-tabs-tab-btn:contains("Headers")`).should("exist").click(); cy.get(".nc-input-hook-header-key") .should("exist") .click() .type("Content-Type{enter}"); - // cy.getActiveSelection(".nc-dropdown-webhook-header") - // .find(".ant-select-item-option-content") - // .contains("Content-Type") - // .should("exist") - // .click(); - cy.get("input.nc-input-hook-header-value") .should("exist") .clear({ force: true })