forked from diaspora/diaspora
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Steffen van Bergerem
committed
May 17, 2013
1 parent
477c9d2
commit 63040bb
Showing
5 changed files
with
40 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,3 +15,22 @@ Feature: Mentions | |
And I am on the home page | ||
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 "[email protected]" is connected with "[email protected]" | ||
When I sign in as "[email protected]" | ||
And I am on the home page | ||
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" | ||
And I wait for the ajax to finish | ||
And I follow "Bob Jones" | ||
Then I should see "Bob Jones" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,8 @@ | |
And /^I mention Alice in the publisher$/ do | ||
alice = User.find_by_email '[email protected]' | ||
fill_in 'status_message_fake_text', :with => "@{Alice Smith ; #{alice.person.diaspora_handle}}" | ||
end | ||
end | ||
|
||
And /^I click on the first user in the mentions dropdown list$/ do | ||
find('.mentions-autocomplete-list li:first').click | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters