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/6369.cy.js
describe("#6369: Object model render of field: deprecated", () => {
  describe("OAS3", () => {
    it("should display row with td:deprecated when set to true", () => {
      cy.visit("/?url=/documents/bugs/6369-oas3-display.yaml")
        .get("#model-IdentificationProfile > .model-box")
        .click()
        .get("#model-IdentificationProfile .model-box .model .inner-object table")
        .find("tr")
        .should("have.length", 3)
        .contains("td", "deprecated")
    })
    it("should not display row with td:deprecated when set to false", () => {
      cy.visit("/?url=/documents/bugs/6369-oas3-no-display.yaml")
        .get("#model-IdentificationProfile > .model-box")
        .click()
        .get("#model-IdentificationProfile .model-box .model .inner-object table")
        .find("tr")
        .should("have.length", 2)
        .get("#model-IdentificationProfile .model-box .model .inner-object table")
        .find(("td:contains(\"deprecated\")"))
        .should("not.exist")
    })
  })
  describe ("OAS2", () => {
    it("should display row with td:deprecated when set to true", () => {
      cy.visit("/?url=/documents/bugs/6369-oas2-display.yaml")
        .get("#model-IdentificationProfile > .model-box")
        .click()
        .get("#model-IdentificationProfile .model-box .model .inner-object")
        .contains("td", "deprecated")
    })
    it("should not display row with td:deprecated when set to false", () => {
      cy.visit("/?url=/documents/bugs/6369-oas2-no-display.yaml")
        .get("#model-IdentificationProfile > .model-box")
        .click()
        .get("#model-IdentificationProfile .model-box .model .inner-object table")
        .find("tr")
        .should("have.length", 2)
        .get("#model-IdentificationProfile .model-box .model .inner-object table")
        .find(("td:contains(\"deprecated\")"))
        .should("not.exist")
    })
  })
})

Spamworldpro Mini