Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 
 

23 rindas
703 B

  1. // http://github.com/swagger-api/swagger-ui/issues/5458
  2. const expectedValue = `{
  3. "foo": "custom value"
  4. }`
  5. describe("#5458: Swagger 2.0 `Response.examples` mappings", () => {
  6. it("should render a custom example when a schema is not defined", () => {
  7. cy.visit("/?url=/documents/bugs/5458.yaml")
  8. .get("#operations-default-get_foo1")
  9. .click()
  10. .get(".model-example .highlight-code")
  11. .contains(expectedValue)
  12. })
  13. it("should render a custom example when a schema is defined", () => {
  14. cy.visit("/?url=/documents/bugs/5458.yaml")
  15. .get("#operations-default-get_foo2")
  16. .click()
  17. .get(".model-example .highlight-code")
  18. .contains(expectedValue)
  19. })
  20. })