Ocelot-Social/cypress/integration/06.WritePost.feature
Robert Schäfer a58861427b Expose a bug: wrong redirect on Post#create
1/2 cucumber tests are green. The reason why the first test does not
succeed reliably is that the frontend redirects to a wrong URL after you
create the post. It's the slug of the first created post. I want to be
redirected to the slug of the created post.

CC @appinteractive please fix
2019-02-15 16:03:21 +01:00

25 lines
762 B
Gherkin

Feature: Create a post
As a user
I would like to create a post
To say something to everyone in the community
Background:
Given I am logged in
Given I am on the "landing" page
Scenario: Create a post
When I click on the big plus icon in the bottom right corner to create post
And I choose "My first post" as the title of the post
And I type in the following text:
"""
Human Connection is a free and open-source social network
for active citizenship.
"""
And I click on "Save"
Then I get redirected to "/post/my-first-post/"
And the post was saved successfully
Scenario: See a post on the landing page
Given I previously created a post
Then the post shows up on the landing page at position 1