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

repost.feature « features - github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 39567dc9fb361bbc497543f5932c543d72faf7ff (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
88
89
90
91
92
93
94
95
96
97
98
@javascript
Feature: public repost
  In order to make Diaspora more viral
  As a User
  I want to reshare my friends post

  Background:
    Given a user named "Bob Jones" with email "bob@bob.bob"
    And a user named "Alice Smith" with email "alice@alice.alice"
    And a user with email "bob@bob.bob" is connected with "alice@alice.alice"


  Scenario: does not show the reshare button on my own posts
    And "bob@bob.bob" has a non public post with text "reshare this!"
    And I sign in as "bob@bob.bob"
    Then I should not see "Reshare" 

  Scenario: does not show a reshare button on other private pots
    And "bob@bob.bob" has a non public post with text "reshare this!"
    And I sign in as "alice@alice.alice"
    Then I should not see "Reshare" 

  Scenario: does shows the reshare button on my own posts
    And "bob@bob.bob" has a public post with text "reshare this!"
    And I sign in as "alice@alice.alice"
    Then I should see "Reshare" 

  Scenario: shows up on the profile page
    And "bob@bob.bob" has a public post with text "reshare this!"
    And I sign in as "alice@alice.alice"

    And I preemptively confirm the alert
    And I follow "Reshare"
    And I wait for the ajax to finish
    And I wait for 2 seconds

    And I am on "alice@alice.alice"'s page
    Then I should see "reshare this!" 
    Then I should see a ".reshare"
    And I should see "Bob" 

  Scenario: shows up on the aspects page
    And "bob@bob.bob" has a public post with text "reshare this!"
    And I sign in as "alice@alice.alice"
    And I preemptively confirm the alert
    And I follow "Reshare"
    And I wait for the ajax to finish

    And I go to the home page
    Then I should see a ".reshare"
    And I follow "Your Aspects"
    Then I should see "reshare this!" 
    Then I should see a ".reshare"
    And I should see "Bob" 

  Scenario: can be retracted
    And "bob@bob.bob" has a public post with text "reshare this!"
    And I sign in as "alice@alice.alice"
    And I preemptively confirm the alert
    And I follow "Reshare"
    And I wait for the ajax to finish

    And I go to the home page
    Then I should see a ".reshare"
    And I follow "Your Aspects"
    Then I should see "reshare this!" 
    Then I should see a ".reshare"
    And I should see "Bob" 

    And I go to the destroy user session page
    And I sign in as "bob@bob.bob"

    And The user deletes their first post

    And I go to the destroy user session page
    And I sign in as "alice@alice.alice"

    And I go to the home page
    Then I should see "Original post deleted by author"

  Scenario: Keeps track of the number of reshares
    And "bob@bob.bob" has a public post with text "reshare this!"
    And I sign in as "alice@alice.alice"
    And I preemptively confirm the alert
    And I follow "Reshare"
    And I wait for the ajax to finish

    And I go to the home page
    Then I should see a ".reshare"
    And I follow "Your Aspects"
    Then I should see "reshare this!" 
    Then I should see a ".reshare"
    And I should see "Bob" 
    And I go to the home page

    And I should see "1 Reshare"

  Scenario: Can have text