diff --git a/features/user_mention.feature b/features/user_mention.feature new file mode 100644 index 0000000..9dbdbe5 --- /dev/null +++ b/features/user_mention.feature @@ -0,0 +1,32 @@ +Feature: user mention + As a user + I want to mention my friends and community members + So that they get notified about what I wrote + + Background: + Given the following users + | login | + | fulano | + | ciclano | + | deltrano | + And "ciclano" is friend of "fulano" + And the following communities + | identifier | name | owner | + | test-community | test community | fulano | + And "deltrano" is a member of "test community" + And the following articles + | owner | name | + | fulano | fulano article | + | test-community | comunity article | + And I am logged in as "fulano" + + + @selenium + Scenario: mention a friend + Given I am on /fulano/fulano-article + And I follow "Post a comment" + And I fill in "Title" with "Hey ho, let's go!" + And I type in "@cic" into autocomplete list "#comment_body" and I choose "ciclano" + When I press "Post comment" + Then I should see "Hey ho, let" + -- libgit2 0.21.2