diaspora/features/desktop/mentions.feature
2015-03-16 14:36:35 +01:00

32 lines
1.2 KiB
Gherkin

@javascript
Feature: Mentions
As user
I want to mention another user and have a link to them
To show people that this person exsists.
Scenario: A user mentions another user and it displays correctly
Given following users exist:
| username | email |
| Bob Jones | bob@bob.bob |
| Alice Smith | alice@alice.alice |
And a user with email "bob@bob.bob" is connected with "alice@alice.alice"
And Alice has a post mentioning Bob
When I sign in as "alice@alice.alice"
And I follow "Bob Jones"
Then I should see "Bob Jones"
Scenario: A user mentions another user at the end of a post
Given following users exist:
| username | email |
| Bob Jones | bob@bob.bob |
| Alice Smith | alice@alice.alice |
And a user with email "bob@bob.bob" is connected with "alice@alice.alice"
When I sign in as "alice@alice.alice"
And I expand the publisher
When I fill in the following:
| status_message_fake_text | @Bo |
And I click on the first user in the mentions dropdown list
And I press "Share"
Then I should see "Bob Jones" within ".stream_element"
When I follow "Bob Jones"
Then I should see "Bob Jones"