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:
kyle
2018-08-23 15:24:32 -07:00
committed by GitHub
parent b4f1886306
commit 00432fc07c
4 changed files with 849 additions and 35 deletions

View File

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