From 9545e20a2237bff79bd32ced0a203f3157b06dd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=A4fer?= Date: Tue, 26 Mar 2019 17:28:15 +0100 Subject: [PATCH] Fix `Search.feature` --- cypress/integration/06.Search.feature | 2 +- cypress/integration/common/search.js | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/cypress/integration/06.Search.feature b/cypress/integration/06.Search.feature index 0a4450829..71aee608a 100644 --- a/cypress/integration/06.Search.feature +++ b/cypress/integration/06.Search.feature @@ -8,7 +8,7 @@ Feature: Search And we have the following posts in our database: | Author | id | title | content | | Brianna Wiest | p1 | 101 Essays that will change the way you think | 101 Essays, of course! | - | Brianna Wiest | p1 | No searched for content | will be found in this post, I guarantee | + | Brianna Wiest | p2 | No searched for content | will be found in this post, I guarantee | Given I am logged in Scenario: Search for specific words diff --git a/cypress/integration/common/search.js b/cypress/integration/common/search.js index 4809e8a13..de24bdccb 100644 --- a/cypress/integration/common/search.js +++ b/cypress/integration/common/search.js @@ -43,8 +43,12 @@ When('I select an entry', () => { Then("I should be on the post's page", () => { cy.location('pathname').should( - 'eq', - '/post/101-essays-that-will-change-the-way-you-think/' + 'contain', + '/post/' + ) + cy.location('pathname').should( + 'contain', + '/101-essays-that-will-change-the-way-you-think' ) })