mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
28 lines
1007 B
Gherkin
28 lines
1007 B
Gherkin
Feature: Hide Posts
|
|
As the moderator team
|
|
we'd like to be able to hide posts from the public
|
|
to enforce our network's code of conduct and/or legal regulations
|
|
|
|
Background:
|
|
Given we have the following posts in our database:
|
|
| title | deleted | disabled |
|
|
| This post should be visible | | |
|
|
| This post is disabled | | x |
|
|
| This post is deleted | x | |
|
|
|
|
Scenario: Disabled posts don't show up on the landing page
|
|
Given I am logged in with a "user" role
|
|
Then I should see only 1 post on the landing page
|
|
And the first post on the landing page has the title:
|
|
"""
|
|
This post should be visible
|
|
"""
|
|
|
|
Scenario: Visiting a disabled post's page should return 404
|
|
Given I am logged in with a "user" role
|
|
When I visit the "/post/this-post-is-disabled" page
|
|
Then I see a 404 error with the following message:
|
|
"""
|
|
We cannot find that post :(
|
|
"""
|