Welcome to mirror list, hosted at ThFree Co, Russian Federation.

mentions.feature « desktop « features - github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8cba48e9695702efe35efe8b89b5a7d9d223c26c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
@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
    And I append "@Bob" to the publisher
    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"

  Scenario: A user tries to mention another user multiple times
    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
    And I append "@Bob" to the publisher
    Then I should see "Bob Jones" within ".tt-suggestion"
    When I click on the first user in the mentions dropdown list
    When I press the "A" key in the publisher
    And I type "@Bob" into the publisher
    Then I should not see the mentions dropdown list
    When I press "Share"
    Then I should see "Bob Jones" within ".stream-element"

    When I expand the publisher
    And I append "@Bob" to the publisher
    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"

  Scenario: A user mentions another user in a comment 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@alice.alice" has a public post with text "check this out!"
    And "alice@alice.alice" has commented mentioning "bob@bob.bob" on "check this out!"
    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 in a comment using mention suggestions
    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@alice.alice" has a public post with text "check this out!"
    When I sign in as "alice@alice.alice"
    Then I should see "check this out!"
    When I focus the comment field
    And I enter "@Bob" in the comment field
    Then I should see "Bob Jones" within ".tt-suggestion"
    When I click on the first user in the mentions dropdown list
    And I enter " A " in the comment field
    And I enter "@Bob" in the comment field
    Then I should not see the mentions dropdown list
    When I press "Comment"
    Then I should see "Bob Jones" within ".comments .comment:last-child"