-
Notifications
You must be signed in to change notification settings - Fork 9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(oas3): fix getting initial values for request body in OpenAPI 3.x (…
- Loading branch information
Showing
5 changed files
with
279 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
test/e2e-cypress/e2e/features/plugins/oas3/one-of-any-of-example.cy.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/** | ||
* @prettier | ||
*/ | ||
|
||
describe("OpenAPI 3.0 oneOf and anyOf example", () => { | ||
it("should show example values for multipart/form-data and application/x-www-form-urlencoded content types", () => { | ||
cy.visit("/?url=/documents/features/oas3-one-of-any-of-example.yaml").then( | ||
() => { | ||
cy.contains("/documentsWithCombineOneOf") | ||
.click() | ||
.get(".try-out__btn") | ||
.click() | ||
.get("textarea") | ||
.contains("documentDate") | ||
.should("exist") | ||
cy.contains("/documentsWithCombineOneOf").click() | ||
cy.contains("/documentsWithCombineAnyOf") | ||
.click() | ||
.get(".try-out__btn") | ||
.contains("Try it out") | ||
.click() | ||
.get("textarea") | ||
.contains("documentDate") | ||
.should("exist") | ||
} | ||
) | ||
}) | ||
}) |
Oops, something went wrong.