@@ -30,10 +30,10 @@ describe("OpenAPI 3.0 Multiple Media Types with different schemas", () => {
|
|||||||
it("should execute multipart/form-data", () => {
|
it("should execute multipart/form-data", () => {
|
||||||
cy.get("@selectMediaType")
|
cy.get("@selectMediaType")
|
||||||
.select(mediaTypeFormData)
|
.select(mediaTypeFormData)
|
||||||
cy.get("@executeBtn")
|
.get("@executeBtn")
|
||||||
.click()
|
.click()
|
||||||
// cURL component
|
// cURL component
|
||||||
cy.get(".responses-wrapper .curl-command")
|
.get(".responses-wrapper .curl-command")
|
||||||
.should("exist")
|
.should("exist")
|
||||||
.get(".responses-wrapper .curl-command span")
|
.get(".responses-wrapper .curl-command span")
|
||||||
.should("contains.text", "bar")
|
.should("contains.text", "bar")
|
||||||
@@ -42,14 +42,14 @@ describe("OpenAPI 3.0 Multiple Media Types with different schemas", () => {
|
|||||||
it("should execute application/x-www-form-urlencoded THEN execute multipart/form-data", () => {
|
it("should execute application/x-www-form-urlencoded THEN execute multipart/form-data", () => {
|
||||||
cy.get("@selectMediaType")
|
cy.get("@selectMediaType")
|
||||||
.select(mediaTypeUrlencoded)
|
.select(mediaTypeUrlencoded)
|
||||||
cy.get("@executeBtn")
|
.get("@executeBtn")
|
||||||
.click()
|
.click()
|
||||||
cy.get("@selectMediaType")
|
.get("@selectMediaType")
|
||||||
.select(mediaTypeFormData)
|
.select(mediaTypeFormData)
|
||||||
cy.get("@executeBtn")
|
.get("@executeBtn")
|
||||||
.click()
|
.click()
|
||||||
// cURL component
|
// cURL component
|
||||||
cy.get(".responses-wrapper .curl-command")
|
.get(".responses-wrapper .curl-command")
|
||||||
.should("exist")
|
.should("exist")
|
||||||
.get(".responses-wrapper .curl-command span")
|
.get(".responses-wrapper .curl-command span")
|
||||||
.should("contains.text", "bar")
|
.should("contains.text", "bar")
|
||||||
@@ -58,14 +58,14 @@ describe("OpenAPI 3.0 Multiple Media Types with different schemas", () => {
|
|||||||
it("should execute application/json THEN execute multipart/form-data", () => {
|
it("should execute application/json THEN execute multipart/form-data", () => {
|
||||||
cy.get("@selectMediaType")
|
cy.get("@selectMediaType")
|
||||||
.select(mediaTypeJson)
|
.select(mediaTypeJson)
|
||||||
cy.get("@executeBtn")
|
.get("@executeBtn")
|
||||||
.click()
|
.click()
|
||||||
cy.get("@selectMediaType")
|
.get("@selectMediaType")
|
||||||
.select(mediaTypeFormData)
|
.select(mediaTypeFormData)
|
||||||
cy.get("@executeBtn")
|
.get("@executeBtn")
|
||||||
.click()
|
.click()
|
||||||
// cURL component
|
// cURL component
|
||||||
cy.get(".responses-wrapper .curl-command")
|
.get(".responses-wrapper .curl-command")
|
||||||
.should("exist")
|
.should("exist")
|
||||||
.get(".responses-wrapper .curl-command span")
|
.get(".responses-wrapper .curl-command span")
|
||||||
.should("contains.text", "bar")
|
.should("contains.text", "bar")
|
||||||
@@ -77,10 +77,10 @@ describe("OpenAPI 3.0 Multiple Media Types with different schemas", () => {
|
|||||||
it("should execute application/x-www-form-urlencoded", () => {
|
it("should execute application/x-www-form-urlencoded", () => {
|
||||||
cy.get("@selectMediaType")
|
cy.get("@selectMediaType")
|
||||||
.select(mediaTypeUrlencoded)
|
.select(mediaTypeUrlencoded)
|
||||||
cy.get("@executeBtn")
|
.get("@executeBtn")
|
||||||
.click()
|
.click()
|
||||||
// cURL component
|
// cURL component
|
||||||
cy.get(".responses-wrapper .curl-command")
|
.get(".responses-wrapper .curl-command")
|
||||||
.should("exist")
|
.should("exist")
|
||||||
.get(".responses-wrapper .curl-command span")
|
.get(".responses-wrapper .curl-command span")
|
||||||
.should("contains.text", "foo")
|
.should("contains.text", "foo")
|
||||||
@@ -89,14 +89,14 @@ describe("OpenAPI 3.0 Multiple Media Types with different schemas", () => {
|
|||||||
it("should execute multipart/form-data THEN execute application/x-www-form-urlencoded", () => {
|
it("should execute multipart/form-data THEN execute application/x-www-form-urlencoded", () => {
|
||||||
cy.get("@selectMediaType")
|
cy.get("@selectMediaType")
|
||||||
.select(mediaTypeFormData)
|
.select(mediaTypeFormData)
|
||||||
cy.get("@executeBtn")
|
.get("@executeBtn")
|
||||||
.click()
|
.click()
|
||||||
cy.get("@selectMediaType")
|
.get("@selectMediaType")
|
||||||
.select(mediaTypeUrlencoded)
|
.select(mediaTypeUrlencoded)
|
||||||
cy.get("@executeBtn")
|
.get("@executeBtn")
|
||||||
.click()
|
.click()
|
||||||
// cURL component
|
// cURL component
|
||||||
cy.get(".responses-wrapper .curl-command")
|
.get(".responses-wrapper .curl-command")
|
||||||
.should("exist")
|
.should("exist")
|
||||||
.get(".responses-wrapper .curl-command span")
|
.get(".responses-wrapper .curl-command span")
|
||||||
.should("contains.text", "foo")
|
.should("contains.text", "foo")
|
||||||
@@ -105,14 +105,14 @@ describe("OpenAPI 3.0 Multiple Media Types with different schemas", () => {
|
|||||||
it("should execute application/json THEN execute application/x-www-form-urlencoded", () => {
|
it("should execute application/json THEN execute application/x-www-form-urlencoded", () => {
|
||||||
cy.get("@selectMediaType")
|
cy.get("@selectMediaType")
|
||||||
.select(mediaTypeJson)
|
.select(mediaTypeJson)
|
||||||
cy.get("@executeBtn")
|
.get("@executeBtn")
|
||||||
.click()
|
.click()
|
||||||
cy.get("@selectMediaType")
|
.get("@selectMediaType")
|
||||||
.select(mediaTypeUrlencoded)
|
.select(mediaTypeUrlencoded)
|
||||||
cy.get("@executeBtn")
|
.get("@executeBtn")
|
||||||
.click()
|
.click()
|
||||||
// cURL component
|
// cURL component
|
||||||
cy.get(".responses-wrapper .curl-command")
|
.get(".responses-wrapper .curl-command")
|
||||||
.should("exist")
|
.should("exist")
|
||||||
.get(".responses-wrapper .curl-command span")
|
.get(".responses-wrapper .curl-command span")
|
||||||
.should("contains.text", "foo")
|
.should("contains.text", "foo")
|
||||||
@@ -126,12 +126,12 @@ describe("OpenAPI 3.0 Multiple Media Types with different schemas", () => {
|
|||||||
// final curl should have both "bar" and "foo"
|
// final curl should have both "bar" and "foo"
|
||||||
cy.get("@selectMediaType")
|
cy.get("@selectMediaType")
|
||||||
.select(mediaTypeJson)
|
.select(mediaTypeJson)
|
||||||
cy.get("@executeBtn")
|
.get("@executeBtn")
|
||||||
.click()
|
.click()
|
||||||
cy.get("@executeBtn")
|
.get("@executeBtn")
|
||||||
.click()
|
.click()
|
||||||
// cURL component
|
// cURL component
|
||||||
cy.get(".responses-wrapper .curl-command")
|
.get(".responses-wrapper .curl-command")
|
||||||
.should("exist")
|
.should("exist")
|
||||||
.get(".responses-wrapper .curl-command span")
|
.get(".responses-wrapper .curl-command span")
|
||||||
.should("contains.text", "foo")
|
.should("contains.text", "foo")
|
||||||
@@ -140,14 +140,14 @@ describe("OpenAPI 3.0 Multiple Media Types with different schemas", () => {
|
|||||||
it("should execute multipart/form-data THEN execute application/json", () => {
|
it("should execute multipart/form-data THEN execute application/json", () => {
|
||||||
cy.get("@selectMediaType")
|
cy.get("@selectMediaType")
|
||||||
.select(mediaTypeFormData)
|
.select(mediaTypeFormData)
|
||||||
cy.get("@executeBtn")
|
.get("@executeBtn")
|
||||||
.click()
|
.click()
|
||||||
cy.get("@selectMediaType")
|
.get("@selectMediaType")
|
||||||
.select(mediaTypeJson)
|
.select(mediaTypeJson)
|
||||||
cy.get("@executeBtn")
|
.get("@executeBtn")
|
||||||
.click()
|
.click()
|
||||||
// cURL component
|
// cURL component
|
||||||
cy.get(".responses-wrapper .curl-command")
|
.get(".responses-wrapper .curl-command")
|
||||||
.should("exist")
|
.should("exist")
|
||||||
.get(".responses-wrapper .curl-command span")
|
.get(".responses-wrapper .curl-command span")
|
||||||
.should("contains.text", "foo")
|
.should("contains.text", "foo")
|
||||||
@@ -157,14 +157,14 @@ describe("OpenAPI 3.0 Multiple Media Types with different schemas", () => {
|
|||||||
// final curl should have both "bar" and "foo"
|
// final curl should have both "bar" and "foo"
|
||||||
cy.get("@selectMediaType")
|
cy.get("@selectMediaType")
|
||||||
.select(mediaTypeUrlencoded)
|
.select(mediaTypeUrlencoded)
|
||||||
cy.get("@executeBtn")
|
.get("@executeBtn")
|
||||||
.click()
|
.click()
|
||||||
cy.get("@selectMediaType")
|
.get("@selectMediaType")
|
||||||
.select(mediaTypeJson)
|
.select(mediaTypeJson)
|
||||||
cy.get("@executeBtn")
|
.get("@executeBtn")
|
||||||
.click()
|
.click()
|
||||||
// cURL component
|
// cURL component
|
||||||
cy.get(".responses-wrapper .curl-command")
|
.get(".responses-wrapper .curl-command")
|
||||||
.should("exist")
|
.should("exist")
|
||||||
.get(".responses-wrapper .curl-command span")
|
.get(".responses-wrapper .curl-command span")
|
||||||
.should("contains.text", "foo")
|
.should("contains.text", "foo")
|
||||||
|
|||||||
Reference in New Issue
Block a user