mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Check that reported post can be visited
- want to verify that it is not a post not found 402
This commit is contained in:
parent
478f6fef1c
commit
624922b0e6
@ -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", {
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user