Refactor to use url()

This commit is contained in:
Matt Rider 2019-04-17 00:08:43 -03:00
parent faf25f5e45
commit 33ddeeebd3

View File

@ -310,6 +310,6 @@ Then('see {int} unread notifications in the top menu', count => {
Then('I get to the post page of {string}', path => {
path = path.replace('...', '')
cy.location('pathname').should('contain', '/post/')
cy.location('pathname').should('contain', path)
cy.url().should('contain', '/post/')
cy.url().should('contain', path)
})