Commit cfa67805dbcd0fedf66221447b1cd95a58e9bb6a
1 parent
d4c822cd
Add selenium test for user mention
Signed-off-by: Fabio Teixeira <fabio1079@gmail.com>
Showing
1 changed file
with
32 additions
and
0 deletions
Show diff stats
... | ... | @@ -0,0 +1,32 @@ |
1 | +Feature: user mention | |
2 | + As a user | |
3 | + I want to mention my friends and community members | |
4 | + So that they get notified about what I wrote | |
5 | + | |
6 | + Background: | |
7 | + Given the following users | |
8 | + | login | | |
9 | + | fulano | | |
10 | + | ciclano | | |
11 | + | deltrano | | |
12 | + And "ciclano" is friend of "fulano" | |
13 | + And the following communities | |
14 | + | identifier | name | owner | | |
15 | + | test-community | test community | fulano | | |
16 | + And "deltrano" is a member of "test community" | |
17 | + And the following articles | |
18 | + | owner | name | | |
19 | + | fulano | fulano article | | |
20 | + | test-community | comunity article | | |
21 | + And I am logged in as "fulano" | |
22 | + | |
23 | + | |
24 | + @selenium | |
25 | + Scenario: mention a friend | |
26 | + Given I am on /fulano/fulano-article | |
27 | + And I follow "Post a comment" | |
28 | + And I fill in "Title" with "Hey ho, let's go!" | |
29 | + And I type in "@cic" into autocomplete list "#comment_body" and I choose "ciclano" | |
30 | + When I press "Post comment" | |
31 | + Then I should see "Hey ho, let" | |
32 | + | ... | ... |