fix: deep link fragment escaping (via #4832)
* `test/e2e` -> `test/e2e-selenium` * add Cypress * ESLint fixes * MOAR cypress * `integration` -> `tests` * wire Cypress up to a hot e2e server * add failing tests for #4537 * add petstore for future use * don't tack `operations/` onto href path * escape generated URL fragments * Update package.json
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import React, { PureComponent } from "react"
|
||||
import PropTypes from "prop-types"
|
||||
import { Iterable } from "immutable"
|
||||
import { createDeepLinkPath } from "core/utils"
|
||||
import ImPropTypes from "react-immutable-proptypes"
|
||||
|
||||
export default class OperationSummaryPath extends PureComponent{
|
||||
@@ -27,7 +28,6 @@ export default class OperationSummaryPath extends PureComponent{
|
||||
isDeepLinkingEnabled,
|
||||
} = operationProps.toJS()
|
||||
|
||||
let isShownKey = ["operations", tag, operationId]
|
||||
const DeepLink = getComponent( "DeepLink" )
|
||||
|
||||
return(
|
||||
@@ -35,7 +35,7 @@ export default class OperationSummaryPath extends PureComponent{
|
||||
<DeepLink
|
||||
enabled={isDeepLinkingEnabled}
|
||||
isShown={isShown}
|
||||
path={`${isShownKey.join("/")}`}
|
||||
path={createDeepLinkPath(`${tag}/${operationId}`)}
|
||||
text={path} />
|
||||
</span>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user