diff --git a/cypress/integration/05.ReportContent.feature b/cypress/integration/05.ReportContent.feature index 2e68beb4e..09d5871a3 100644 --- a/cypress/integration/05.ReportContent.feature +++ b/cypress/integration/05.ReportContent.feature @@ -1,4 +1,4 @@ -Feature: Report content +Feature: Report and Moderate As a user I would like to report content that viloates the community guidlines So the moderators can take action on it diff --git a/cypress/integration/common/report.js b/cypress/integration/common/report.js index 782c294a1..67275e61b 100644 --- a/cypress/integration/common/report.js +++ b/cypress/integration/common/report.js @@ -85,11 +85,15 @@ Then('I get a success message', () => { Then('I see my reported post', () => { cy.get('table').then(() => { - cy.get('tbody tr:first-child()').contains(lastReportTitle.slice(0, 20)) + cy.get('tbody tr') + .first() + .contains(lastReportTitle.trim().slice(0, 20)) }) }) Then('I see my reported user', () => { cy.get('table').then(() => { - cy.get('tbody tr:first-child()').contains(lastReportTitle) + cy.get('tbody tr') + .first() + .contains(lastReportTitle.trim()) }) })