Skip to content

Commit

Permalink
fix(oas31): fix deep linking for Webhooks and Callbacks (#8680)
Browse files Browse the repository at this point in the history
Refs #8679
  • Loading branch information
char0n committed May 16, 2023
1 parent 75b41e0 commit 872e382
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/core/plugins/oas3/components/callbacks.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const Callbacks = ({ callbacks, specPath, specSelectors, getComponent }) => {
<OperationContainer
key={`${callbackName}-${operationDTO.path}-${operationDTO.method}`}
op={operationDTO.operation}
tag=""
tag="callbacks"
method={operationDTO.method}
path={operationDTO.path}
specPath={operationDTO.specPath}
Expand Down
2 changes: 1 addition & 1 deletion src/core/plugins/oas31/components/webhooks.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const Webhooks = ({ specSelectors, getComponent }) => {
<OperationContainer
key={`${pathItemName}-${operationDTO.method}-webhook`}
op={operationDTO.operation}
tag=""
tag="webhooks"
method={operationDTO.method}
path={pathItemName}
specPath={operationDTO.specPath}
Expand Down
4 changes: 2 additions & 2 deletions test/e2e-cypress/tests/features/webhooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ describe("Render Webhooks Component", () => {
})
it("should render an operation component", () => {
cy.visit(baseUrl)
.get(".webhooks #operations--postnewPet > .opblock-summary")
.get(".webhooks #operations-webhooks-postnewPet > .opblock-summary")
.should("exist")
.should("contains.text", "POST")
.should("contains.text", "newPet")
Expand All @@ -23,4 +23,4 @@ describe("Render Webhooks Component", () => {
.should("not.exist")
})
})
})
})

0 comments on commit 872e382

Please sign in to comment.