diff --git a/cypress/integration/06.WritePost.feature b/cypress/integration/06.WritePost.feature index 0193e44bf..fed1bbf2f 100644 --- a/cypress/integration/06.WritePost.feature +++ b/cypress/integration/06.WritePost.feature @@ -17,7 +17,7 @@ Feature: Create a post for active citizenship. """ And I click on "Save" - Then I get redirected to "/post/my-first-post/" + Then I get redirected to ".../my-first-post" And the post was saved successfully Scenario: See a post on the landing page diff --git a/cypress/integration/common/steps.js b/cypress/integration/common/steps.js index d05f80f13..8944b7c25 100644 --- a/cypress/integration/common/steps.js +++ b/cypress/integration/common/steps.js @@ -224,7 +224,7 @@ Then('the post shows up on the landing page at position {int}', index => { }) Then('I get redirected to {string}', route => { - cy.location('pathname').should('contain', route) + cy.location('pathname').should('contain', route.replace('...', '')) }) Then('the post was saved successfully', () => {