Ocelot-Social/cypress/integration/Post.Create.feature
Ulf Gebhardt 39fb4b98d3
User.ChangePassword.feature
unified user creation and logging in
2021-04-14 20:36:13 +02:00

25 lines
937 B
Gherkin

Feature: Create a post
As an logged in user
I would like to create a post
To say something to everyone in the community
Background:
Given the following "users" are in the database:
| slug | email | password | id | name | termsAndConditionsAgreedVersion |
| narrator | narrator@example.org | 1234 | narrator | Nathan Narrator | 0.0.4 |
And I am logged in as "narrator"
And I navigate to page "landing"
Scenario: Create a post
When I click on "create post button"
Then I am on page "post/create"
When I choose "My first post" as the title
And I choose the following text as content:
"""
Ocelot.social is a free and open-source social network
for active citizenship.
"""
And I click on "save button"
Then I am on page ".../my-first-post"
And the post was saved successfully