Ulf Gebhardt 39fb4b98d3
User.ChangePassword.feature
unified user creation and logging in
2021-04-14 20:36:13 +02:00

24 lines
1.1 KiB
Gherkin

Feature: See a post
As an logged in user
I would like to see a post
And to see the whole content of it
Background:
Given the following "users" are in the database:
| slug | email | password | id | name | termsAndConditionsAgreedVersion |
| peter-pan| peter@pan.com | abcd | id-of-peter-pan| Peter Pan | 0.0.4 |
| narrator | narrator@example.org | 1234 | narrator | Nathan Narrator | 0.0.4 |
And the following "posts" are in the database:
| id | title | slug | authorId | content |
| aBcDeFgHiJ | previously created post | previously-created-post | id-of-peter-pan | with some content |
And I am logged in as "narrator"
Scenario: See a post on the landing page
When I navigate to page "landing"
Then the post shows up on the landing page at position 1
Scenario: Navigate to the Post Page
When I navigate to page "landing"
And I click on "the first post"
Then I am on page "post/..."