diaspora/features/desktop/public_stream.feature
Steffen van Bergerem e0be1b49f1 Add public stream
closes #6465
2015-10-07 22:29:39 +02:00

30 lines
1.2 KiB
Gherkin
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@javascript
Feature: The public stream
Background:
Given following users exist:
| username | email |
| Alice Smith | alice@alice.alice |
| Bob Jones | bob@bob.bob |
| Eve Doe | eve@eve.eve |
And a user with email "alice@alice.alice" is connected with "bob@bob.bob"
And "bob@bob.bob" has a public post with text "Bobs public post"
And "bob@bob.bob" has a non public post with text "Bobs private post"
And "eve@eve.eve" has a public post with text "Eves public post"
Scenario: seeing public posts of someone you don't follow
When I sign in as "alice@alice.alice"
Then I should not see "Eves public post"
When I am on the public stream page
Then I should see "Eves public post"
Scenario: seeing public posts of someone you follow
When I sign in as "alice@alice.alice"
Then I should see "Bobs public post"
When I am on the public stream page
Then I should see "Bobs public post"
Scenario: not seeing private posts of someone you follow
When I sign in as "alice@alice.alice"
Then I should see "Bobs private post"
When I am on the public stream page
Then I should not see "Bobs private post"