From f1efdbad7dad8d3db5f78189eeeb6e4852983de6 Mon Sep 17 00:00:00 2001 From: Alina Beck Date: Wed, 12 Feb 2020 00:27:40 +0100 Subject: [PATCH] fix final failing cypress test --- cypress/integration/common/report.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cypress/integration/common/report.js b/cypress/integration/common/report.js index 91faf87c4..77c97b53b 100644 --- a/cypress/integration/common/report.js +++ b/cypress/integration/common/report.js @@ -12,7 +12,7 @@ let annoyingUserWhoMutedModeratorTitle = 'Fake news' const savePostTitle = $post => { return $post .first() - .find('.ds-heading') + .find('.title') .first() .invoke('text') .then(title => { @@ -161,7 +161,7 @@ Then('each list item links to the post page', () => { Then('I can visit the post page', () => { cy.contains(annoyingUserWhoMutedModeratorTitle).click() cy.location('pathname').should('contain', '/post') - .get('h3').should('contain', annoyingUserWhoMutedModeratorTitle) + .get('title').should('contain', annoyingUserWhoMutedModeratorTitle) }) When("they have a post someone has reported", () => {