mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-12 23:35:52 +00:00
25 lines
936 B
Gherkin
25 lines
936 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 "/"
|
|
|
|
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 "/post/.*/my-first-post"
|
|
And the post was saved successfully
|