From cfa67805dbcd0fedf66221447b1cd95a58e9bb6a Mon Sep 17 00:00:00 2001 From: Fabio Teixeira Date: Mon, 25 Jul 2016 14:48:29 +0000 Subject: [PATCH] Add selenium test for user mention --- features/user_mention.feature | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+), 0 deletions(-) create mode 100644 features/user_mention.feature 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