Robert Schäfer 6f116b6963 Remove custom error page
I find the custom error page out of scope of this PR so I will create
another tracking PR to get this feature merged as soon as possible.

See: https://github.com/Human-Connection/Nitro-Web/pull/216
2019-03-04 15:56:56 +01:00

27 lines
981 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
Then the page "/post/this-post-is-disabled" returns a 404 error with a message:
"""
This post could not be found
"""