Skip to content

Commit

Permalink
chore: improve demo
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexVarchuk committed May 26, 2021
1 parent 6acdba5 commit d525e6d
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 11 deletions.
13 changes: 8 additions & 5 deletions demo/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ externalDocs:
tags:
- name: pet
description: Everything about your Pets
- name: webhooks
description: Everything about your Webhooks
- name: store
description: Access to Petstore orders
- name: user
Expand All @@ -78,6 +80,7 @@ x-tagGroups:
tags:
- pet
- store
- webhooks
- name: User Management
tags:
- user
Expand Down Expand Up @@ -896,13 +899,13 @@ paths:
description: successful operation
components:
pathItems:
catsWebhook:
webhooks:
put:
summary: Get a cat details after update
description: Get a cat details after update
operationId: updatedCat
tags:
- pet
- webhooks
requestBody:
description: Information about cat in the system
content:
Expand All @@ -917,7 +920,7 @@ components:
description: Info about new cat
operationId: createdCat
tags:
- pet
- webhooks
requestBody:
description: Information about cat in the system
content:
Expand Down Expand Up @@ -1231,7 +1234,7 @@ webhooks:
description: Information about a new pet in the systems
operationId: newPet
tags:
- pet
- webhooks
requestBody:
content:
application/json:
Expand All @@ -1241,6 +1244,6 @@ webhooks:
"200":
description: Return a 200 status to indicate that the data was received successfully
myWebhook:
$ref: '#/components/pathItems/catsWebhook'
$ref: '#/components/pathItems/webhooks'
description: Overriding description
summary: Overriding summary
2 changes: 1 addition & 1 deletion e2e/integration/menu.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ describe('Menu', () => {
it('should have valid items count', () => {
cy.get('.menu-content')
.find('li')
.should('have.length', 36);
.should('have.length', 37);
});

it('should sync active menu items while scroll', () => {
Expand Down
15 changes: 10 additions & 5 deletions src/utils/__tests__/__snapshots__/loadAndBundleSpec.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Object {
},
},
"pathItems": Object {
"catsWebhook": Object {
"webhooks": Object {
"post": Object {
"description": "Info about new cat",
"operationId": "createdCat",
Expand All @@ -35,7 +35,7 @@ Object {
},
"summary": "Create new cat",
"tags": Array [
"pet",
"webhooks",
],
},
"put": Object {
Expand All @@ -58,7 +58,7 @@ Object {
},
"summary": "Get a cat details after update",
"tags": Array [
"pet",
"webhooks",
],
},
},
Expand Down Expand Up @@ -1784,6 +1784,10 @@ culpa qui officia deserunt mollit anim id est laborum.
"description": "Everything about your Pets",
"name": "pet",
},
Object {
"description": "Everything about your Webhooks",
"name": "webhooks",
},
Object {
"description": "Access to Petstore orders",
"name": "store",
Expand All @@ -1807,7 +1811,7 @@ culpa qui officia deserunt mollit anim id est laborum.
],
"webhooks": Object {
"myWebhook": Object {
"$ref": "#/components/pathItems/catsWebhook",
"$ref": "#/components/pathItems/webhooks",
"description": "Overriding description",
"summary": "Overriding summary",
},
Expand All @@ -1831,7 +1835,7 @@ culpa qui officia deserunt mollit anim id est laborum.
},
"summary": "New pet",
"tags": Array [
"pet",
"webhooks",
],
},
},
Expand All @@ -1842,6 +1846,7 @@ culpa qui officia deserunt mollit anim id est laborum.
"tags": Array [
"pet",
"store",
"webhooks",
],
},
Object {
Expand Down

0 comments on commit d525e6d

Please sign in to comment.