From 6ee9b9d830995a08dcc275b54a3a5a7cd00fc4f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=A4fer?= Date: Tue, 26 Mar 2019 17:13:41 +0100 Subject: [PATCH] Fix `WritePost.feature` --- cypress/integration/06.WritePost.feature | 2 +- cypress/integration/common/steps.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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', () => {