Browse Source

test(misc): webhook header search, remove wait in openTableTab

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
pull/3773/head
Raju Udava 2 years ago
parent
commit
7c504a316c
  1. 25
      scripts/cypress/integration/common/8a_webhook.js
  2. 2
      scripts/cypress/support/commands.js

25
scripts/cypress/integration/common/8a_webhook.js

@ -26,24 +26,13 @@ function createWebhook(hook, test) {
cy.get(".nc-input-hook-header-key")
.should("exist")
.click()
.type("{downarrow}")
.type("{downarrow}")
.type("{downarrow}")
.type("{downarrow}")
.type("{downarrow}")
.type("{downarrow}")
.type("{downarrow}")
.type("{downarrow}")
.type("{downarrow}")
.type("{downarrow}")
.type("{downarrow}")
.type("{downarrow}");
cy.getActiveSelection(".nc-dropdown-webhook-header")
.find(".ant-select-item-option-content")
.contains("Content-Type")
.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")

2
scripts/cypress/support/commands.js

@ -149,7 +149,7 @@ Cypress.Commands.add("openTableTab", (tn, rc) => {
// .contains(tn)
// .should('exist')
// .click();
cy.wait(3000);
// cy.wait(3000);
cy.get(".xc-row-table.nc-grid").should("exist");

Loading…
Cancel
Save