fix(oas31): fix deep linking for Webhooks and Callbacks (#8680)

Refs #8679
This commit is contained in:
Vladimír Gorej
2023-05-16 14:57:00 +02:00
committed by GitHub
parent 75b41e09ff
commit 872e382c5f
3 changed files with 4 additions and 4 deletions

View File

@@ -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}

View File

@@ -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}

View File

@@ -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")
})
})
})
})