OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
reader
/
API
/
swagger-ui-5.17.14
/
test
/
e2e-cypress
/
e2e
/
bugs
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
08/07/2024 04:34:14 AM
rwxr-xr-x
📄
4442.cy.js
1.12 KB
08/07/2024 04:34:12 AM
rw-r--r--
📄
4641.cy.js
3.36 KB
08/07/2024 04:34:12 AM
rw-r--r--
📄
4838.cy.js
338 bytes
08/07/2024 04:34:12 AM
rw-r--r--
📄
4865.cy.js
722 bytes
08/07/2024 04:34:12 AM
rw-r--r--
📄
4867.cy.js
474 bytes
08/07/2024 04:34:12 AM
rw-r--r--
📄
4943.cy.js
572 bytes
08/07/2024 04:34:12 AM
rw-r--r--
📄
5043.cy.js
977 bytes
08/07/2024 04:34:12 AM
rw-r--r--
📄
5060.cy.js
678 bytes
08/07/2024 04:34:12 AM
rw-r--r--
📄
5070.cy.js
1 KB
08/07/2024 04:34:12 AM
rw-r--r--
📄
5072.cy.js
785 bytes
08/07/2024 04:34:12 AM
rw-r--r--
📄
5129.cy.js
3.83 KB
08/07/2024 04:34:12 AM
rw-r--r--
📄
5138.cy.js
283 bytes
08/07/2024 04:34:12 AM
rw-r--r--
📄
5164.cy.js
606 bytes
08/07/2024 04:34:12 AM
rw-r--r--
📄
5188.cy.js
660 bytes
08/07/2024 04:34:12 AM
rw-r--r--
📄
5452.cy.js
1.33 KB
08/07/2024 04:34:12 AM
rw-r--r--
📄
5453.cy.js
406 bytes
08/07/2024 04:34:12 AM
rw-r--r--
📄
5455.cy.js
433 bytes
08/07/2024 04:34:12 AM
rw-r--r--
📄
5458.cy.js
703 bytes
08/07/2024 04:34:12 AM
rw-r--r--
📄
5660.cy.js
680 bytes
08/07/2024 04:34:12 AM
rw-r--r--
📄
6016.cy.js
1.71 KB
08/07/2024 04:34:12 AM
rw-r--r--
📄
6158.cy.js
1.79 KB
08/07/2024 04:34:12 AM
rw-r--r--
📄
6183.cy.js
1.47 KB
08/07/2024 04:34:12 AM
rw-r--r--
📄
6276.cy.js
1.52 KB
08/07/2024 04:34:12 AM
rw-r--r--
📄
6351.cy.js
507 bytes
08/07/2024 04:34:12 AM
rw-r--r--
📄
6369.cy.js
1.86 KB
08/07/2024 04:34:12 AM
rw-r--r--
📄
6442.cy.js
1.1 KB
08/07/2024 04:34:13 AM
rw-r--r--
📄
6475.cy.js
1.89 KB
08/07/2024 04:34:13 AM
rw-r--r--
📄
6540.cy.js
735 bytes
08/07/2024 04:34:13 AM
rw-r--r--
📄
6627.cy.js
455 bytes
08/07/2024 04:34:13 AM
rw-r--r--
📄
7996.cy.js
592 bytes
08/07/2024 04:34:13 AM
rw-r--r--
📄
8217.cy.js
894 bytes
08/07/2024 04:34:13 AM
rw-r--r--
📄
editor-1868.cy.js
675 bytes
08/07/2024 04:34:13 AM
rw-r--r--
📄
swos-63.cy.js
1.1 KB
08/07/2024 04:34:13 AM
rw-r--r--
Editing: 5129.cy.js
Close
describe("#5129: parameter required + allowEmptyValue interactions", () => { describe("allowEmptyValue parameter", () => { const opId = "#operations-default-get_aev" it("should omit the parameter by default", () => { cy .visit("/?url=/documents/bugs/5129.yaml") .get(opId) .click() .get(".btn.try-out__btn") .click() .get(".btn.execute") .click() .get(".request-url pre") .should("have.text", "http://localhost:3230/aev") }) it("should include a value", () => { cy .visit("/?url=/documents/bugs/5129.yaml") .get(opId) .click() .get(".btn.try-out__btn") .click() .get(`.parameters-col_description input[type=text]`) .type("asdf") .get(".btn.execute") .click() .get(".request-url pre") .should("have.text", "http://localhost:3230/aev?param=asdf") }) it("should include an empty value when empty value box is checked", () => { cy .visit("/?url=/documents/bugs/5129.yaml") .get(opId) .click() .get(".btn.try-out__btn") .click() .get(`.parameters-col_description input[type=checkbox]`) .check() .get(".btn.execute") .click() .get(".request-url pre") .should("have.text", "http://localhost:3230/aev?param=") }) it("should include a value when empty value box is checked and then input is provided", () => { cy .visit("/?url=/documents/bugs/5129.yaml") .get(opId) .click() .get(".btn.try-out__btn") .click() .get(`.parameters-col_description input[type=checkbox]`) .check() .get(`.parameters-col_description input[type=text]`) .type("1234") .get(".btn.execute") .click() .get(".request-url pre") .should("have.text", "http://localhost:3230/aev?param=1234") }) }) describe("allowEmptyValue + required parameter", () => { const opId = "#operations-default-get_aev_and_required" it("should refuse to execute by default", () => { cy .visit("/?url=/documents/bugs/5129.yaml") .get(opId) .click() .get(".btn.try-out__btn") .click() .get(".btn.execute") .click() .wait(1000) .get(".request-url pre") .should("not.exist") }) it("should include a value", () => { cy .visit("/?url=/documents/bugs/5129.yaml") .get(opId) .click() .get(".btn.try-out__btn") .click() .get(`.parameters-col_description input[type=text]`) .type("asdf") .get(".btn.execute") .click() .get(".request-url pre") .should("have.text", "http://localhost:3230/aev/and/required?param=asdf") }) it("should include an empty value when empty value box is checked", () => { cy .visit("/?url=/documents/bugs/5129.yaml") .get(opId) .click() .get(".btn.try-out__btn") .click() .get(`.parameters-col_description input[type=checkbox]`) .check() .get(".btn.execute") .click() .get(".request-url pre") .should("have.text", "http://localhost:3230/aev/and/required?param=") }) it("should include a value when empty value box is checked and then input is provided", () => { cy .visit("/?url=/documents/bugs/5129.yaml") .get(opId) .click() .get(".btn.try-out__btn") .click() .get(`.parameters-col_description input[type=checkbox]`) .check() .get(`.parameters-col_description input[type=text]`) .type("1234") .get(".btn.execute") .click() .get(".request-url pre") .should("have.text", "http://localhost:3230/aev/and/required?param=1234") }) }) })