diff --git a/cypress/integration/common/steps.js b/cypress/integration/common/steps.js index 6b04e8e4c..5bd07583b 100644 --- a/cypress/integration/common/steps.js +++ b/cypress/integration/common/steps.js @@ -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) })