Browse Source

test: wait for webhook page rendering to finish

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
pull/3801/head
Raju Udava 2 years ago committed by braks
parent
commit
972792843b
  1. 13
      scripts/cypress/integration/common/8a_webhook.js

13
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 })

Loading…
Cancel
Save