Skip to content

Commit

Permalink
Match regex on relative path not absolute
Browse files Browse the repository at this point in the history
- to work in production mode
  • Loading branch information
mattwr18 committed Feb 21, 2019
1 parent b293ba7 commit 57ba7df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cypress/integration/common/web_steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Given('I am at the projects page', () => {
cy.server()
cy.fixture('projects').then(projects => {
cy.route(
/https:\/\/develop\.websiteone\.agileventures\.org\/api\/v1\/projects/,
/\/api\/v1\/projects/,
projects
).as('getProjects')
cy.visit('/projects')
Expand All @@ -30,7 +30,7 @@ Given('I am at the projects page', () => {
When('I click on the LocalSupport project', () => {
cy.server()
cy.fixture('project').then(project => {
cy.route(/https:\/\/develop\.websiteone\.agileventures\.org\/api\/v1\/projects\/localsupport/, project).as('getProject')
cy.route(/\/api\/v1\/projects\/localsupport/, project).as('getProject')
cy.get('div')
.contains('LocalSupport')
.click({ force: true })
Expand Down

0 comments on commit 57ba7df

Please sign in to comment.