Fix Search.feature

This commit is contained in:
Robert Schäfer 2019-03-26 17:28:15 +01:00
parent 6ee9b9d830
commit 9545e20a22
2 changed files with 7 additions and 3 deletions

View File

@ -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

View File

@ -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'
)
})