mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
21 lines
742 B
Gherkin
21 lines
742 B
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 I have an user account
|
|
And I am logged in
|
|
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 |
|
|
|
|
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/..."
|