Skip to content

Instantly share code, notes, and snippets.

@PierreCavalet
Created May 6, 2020 08:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PierreCavalet/074b6cb0ef9452842ab25ec0e0c3938a to your computer and use it in GitHub Desktop.
Save PierreCavalet/074b6cb0ef9452842ab25ec0e0c3938a to your computer and use it in GitHub Desktop.
const router = require('../services/router')
Cypress.Commands.add('goTo', (routeName) => {
cy.visit(router.resolve(routeName))
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment