diff --git a/cypress/integration/common/report.js b/cypress/integration/common/report.js index c22651385..c51c6b42e 100644 --- a/cypress/integration/common/report.js +++ b/cypress/integration/common/report.js @@ -150,6 +150,12 @@ Then('each list item links to the post page', () => { cy.location('pathname').should('contain', '/post') }) +Then('I can visit the post page', () => { + cy.contains(annoyingUserWhoBlockedModeratorTitle).click() + cy.location('pathname').should('contain', '/post') + .get('h3').should('contain', annoyingUserWhoBlockedModeratorTitle) +}) + When("they have a post someone has reported", () => { cy.factory() .create("Post", { diff --git a/cypress/integration/moderation/ReportContent.feature b/cypress/integration/moderation/ReportContent.feature index 351f087fb..a18b07796 100644 --- a/cypress/integration/moderation/ReportContent.feature +++ b/cypress/integration/moderation/ReportContent.feature @@ -68,7 +68,7 @@ Feature: Report and Moderate When I click on the avatar menu in the top right corner And I click on "Moderation" Then I see all the reported posts including from the user who blocked me - And each list item links to the post page + And I can visit the post page Scenario: Normal user can't see the moderation page Given I am logged in with a "user" role