From 33ddeeebd329fb93c3a2a558f963618623edcb97 Mon Sep 17 00:00:00 2001 From: Matt Rider Date: Wed, 17 Apr 2019 00:08:43 -0300 Subject: [PATCH] Refactor to use url() --- cypress/integration/common/steps.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) })