Ocelot-Social/cypress/integration/Post.Create.feature

30 lines
897 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 I have an user account
And I am logged in
And I navigate to page "landing"
Scenario: Create a post
When I click on create post
And I wait for 500 milliseconds
Then I am on page "post/create"
When I choose "My first post" as the title
And I choose the following text as content:
"""
Human Connection is a free and open-source social network
for active citizenship.
"""
And I click on "Save"
And I wait for 500 milliseconds
Then I am on page ".../my-first-post"
And the post was saved successfully
Scenario: See a post on the landing page
When I previously created a post
And I navigate to page "landing"
Then the post shows up on the landing page at position 1