Skip to content

Commit

Permalink
Run specs with name containing '+'
Browse files Browse the repository at this point in the history
  • Loading branch information
laistomazz committed Jul 17, 2020
1 parent bf1b811 commit 1f51c39
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/server/lib/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,11 @@ module.exports = ({ app, config, getRemoteState, networkProxy, project, onError
// routing for the actual specs which are processed automatically
// this could be just a regular .js file or a .coffee file
app.get('/__cypress/tests', (req, res, next) => {
// https://github.com/cypress-io/cypress/issues/5909
const specUrl = req.originalUrl.replace('/__cypress/tests?p=', '')

// slice out the cache buster
const test = CacheBuster.strip(req.query.p)
const test = CacheBuster.strip(specUrl)

spec.handle(test, req, res, config, next, onError)
})
Expand Down

0 comments on commit 1f51c39

Please sign in to comment.