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/6276.cy.js
describe("#6276: Query parameter filter=true is filtering by the value 'true'", () => {
  describe("With filter=true", () => {
    it("should display the filter bar", () => {
      cy.visit("/?url=/documents/petstore.swagger.yaml&filter=true")
        .get(".operation-filter-input")
        .should("exist")
        .should("be.empty")
        .get(".opblock-tag[data-tag='pet']")
        .should("exist")
        .get(".opblock-tag[data-tag='store']")
        .should("exist")
        .get(".opblock-tag[data-tag='user']")
        .should("exist")
    })
  })
  describe("With filter=false", () => {
    it("should not display the filter bar", () => {
      cy.visit("/?url=/documents/petstore.swagger.yaml&filter=false")
        .get(".operation-filter-input")
        .should("not.exist")
        .get(".opblock-tag[data-tag='pet']")
        .should("exist")
        .get(".opblock-tag[data-tag='store']")
        .should("exist")
        .get(".opblock-tag[data-tag='user']")
        .should("exist")
    })
  })
  describe("With filter=pet", () => {
    it("should display the filter bar and only show the operations tagged with pet", () => {
      cy.visit("/?url=/documents/petstore.swagger.yaml&filter=pet")
        .get(".operation-filter-input")
        .should("exist")
        .should("have.value", "pet")
        .get(".opblock-tag[data-tag='pet']")
        .should("exist")
        .get(".opblock-tag[data-tag='store']")
        .should("not.exist")
        .get(".opblock-tag[data-tag='user']")
        .should("not.exist")
    })
  })
})

Spamworldpro Mini