diff --git a/src/core/components/parameter-row.jsx b/src/core/components/parameter-row.jsx index f6e3860e..323fa8f9 100644 --- a/src/core/components/parameter-row.jsx +++ b/src/core/components/parameter-row.jsx @@ -197,7 +197,7 @@ export default class ParameterRow extends Component { getConfigs={ getConfigs } isExecute={ isExecute } specSelectors={ specSelectors } - schema={ schema } + schema={ param.get("schema") } example={ bodyParam }/> : null } diff --git a/test/e2e/scenarios/operations/pet.js b/test/e2e/scenarios/operations/pet.js index 5d074b1a..9bb1a183 100644 --- a/test/e2e/scenarios/operations/pet.js +++ b/test/e2e/scenarios/operations/pet.js @@ -71,6 +71,16 @@ describe("render pet api container", function () { client.end() }) + it("Testing post /pet api model values", function (client) { + apiWrapper.waitForElementVisible("@petOperationPostContainer", 5000) + .click("@petOperationPostCollpase") + .waitForElementVisible("@petOperationPostCollapseContainer", 5000) + .click("a.tablinks[data-name=model]") + .assert.containsText("span.model-title > .model-title__text", `Pet`) + + client.end() + }) + it("render put /pet api container", function (client) { apiWrapper.waitForElementVisible("@petOperationPutContainer", 5000) .assert.containsText("@petOperationPutTitle", "/pet") @@ -81,10 +91,10 @@ describe("render pet api container", function () { .waitForElementVisible("@petOperationPutExecuteBtn", 1000) .click("@petOperationPutTryBtn") .assert.cssClassNotPresent("@petOperationPutTryBtn", "cancel") - + client.end() }) - + it("Testing put /pet api Mock data", function (client) { apiWrapper.waitForElementVisible("@petOperationPutContainer", 5000) .click("@petOperationPutCollpase") @@ -115,7 +125,7 @@ describe("render pet api container", function () { .waitForElementVisible("@petOperationGetByTagExecuteBtn", 1000) .click("@petOperationGetByTagTryBtn") .assert.cssClassNotPresent("@petOperationGetByTagTryBtn", "cancel") - + client.end() }) @@ -138,7 +148,7 @@ describe("render pet api container", function () { client.end() }) - + it("render get by ID /pet/{petId} api container", function (client) { apiWrapper.waitForElementVisible("@petOperationGetByIdContainer", 5000) .assert.containsText("@petOperationGetByIdTitle", "/pet/{petId}") @@ -148,7 +158,7 @@ describe("render pet api container", function () { .waitForElementVisible("@petOperationGetByTagExecuteBtn", 1000) .click("@petOperationGetByTagTryBtn") .assert.cssClassNotPresent("@petOperationGetByTagTryBtn", "cancel") - + client.end() }) @@ -167,7 +177,7 @@ describe("render pet api container", function () { .assert.attributeEquals("@petOperationGetByIdParameter", "title", "Value must be an integer") .click("@petOperationGetByTagTryBtn") .assert.cssClassNotPresent("@petOperationGetByTagTryBtn", "cancel") - + client.end() }) @@ -180,10 +190,10 @@ describe("render pet api container", function () { .waitForElementVisible("@petOperationDeleteExecuteBtn", 1000) .click("@petOperationDeleteTryBtn") .assert.cssClassNotPresent("@petOperationDeleteTryBtn", "cancel") - + client.end() }) - + it("Testing delete /pet api Mock data", function (client) { apiWrapper.waitForElementVisible("@petOperationDeleteContainer", 3000) .click("@petOperationDeleteCollpase") @@ -203,4 +213,4 @@ describe("render pet api container", function () { client.end() }) -}) \ No newline at end of file +})