Check that reported post can be visited

- want to verify that it is not a post not found 402
This commit is contained in:
mattwr18 2019-10-01 21:29:48 +02:00
parent 478f6fef1c
commit 624922b0e6
2 changed files with 7 additions and 1 deletions

View File

@ -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", {

View File

@ -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