fix(oas31): fix deep linking for Webhooks and Callbacks (#8680)
Refs #8679
This commit is contained in:
@@ -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}
|
||||
|
||||
@@ -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}
|
||||
|
||||
@@ -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")
|
||||
@@ -23,4 +23,4 @@ describe("Render Webhooks Component", () => {
|
||||
.should("not.exist")
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user