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

hovercards.feature « desktop « features - github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 6fff24f728cb19b8a67324dccd80970b89836154 (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
@javascript
Feature: Hovercards
  In order to not having to leave the page to view a persons profile
  As a user
  I want to use hovercards

  Background:
    Given a user named "Bob Jones" with email "bob@bob.bob"
    And "bob@bob.bob" has a public post with text "public stuff #hashtag"
    And a user named "Alice" with email "alice@alice.alice"
    And "alice@alice.alice" has a public post with text "alice public stuff"
    And the post with text "public stuff #hashtag" is reshared by "alice@alice.alice"
    And the post with text "alice public stuff" is reshared by "bob@bob.bob"

  Scenario: Hovercards on the main stream
    Given I sign in as "alice@alice.alice"
    And I am on "bob@bob.bob"'s page
    Then I should see "public stuff" within ".stream-element"
    When I activate the first hovercard
    Then I should see a hovercard
    When I deactivate the first hovercard
    Then I should not see a hovercard

  Scenario: Hovercards on the main stream in reshares
    Given I sign in as "alice@alice.alice"
    And I am on "bob@bob.bob"'s page
    Then I should see "Alice" within "#main-stream"
    When I hover "Alice" within "#main-stream"
    Then I should not see a hovercard
    When I am on "alice@alice.alice"'s page
    Then I should see "Bob Jones" within "#main-stream"
    When I hover "Bob Jones" within "#main-stream"
    Then I should see a hovercard

  Scenario: Hovercards on the tag stream as a logged out user
    Given I am on the tag page for "hashtag"
    Then I should see "public stuff" within ".stream-element"
    When I activate the first hovercard
    Then I should see a hovercard
    When I deactivate the first hovercard
    Then I should not see a hovercard

  Scenario: Hovercards contain profile tags
    Given a user with email "bob@bob.bob" is tagged "#first #second"
    And I sign in as "alice@alice.alice"
    And I am on "bob@bob.bob"'s page
    Then I should see "public stuff" within ".stream-element"
    When I activate the first hovercard
    Then I should see a hovercard
    And I should see "#first" hashtag in the hovercard
    And I should see "#second" hashtag in the hovercard