mirror of
https://github.com/nocodb/nocodb.git
synced 2026-05-02 17:16:48 +00:00
test: wait for webhook page rendering to finish
Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
This commit is contained in:
@@ -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 })
|
||||
|
||||
Reference in New Issue
Block a user