|
| 1 | +Feature: Visitors should be able to see claimed tips |
| 2 | + Background: |
| 3 | + Given a "github" project named "seldon/seldons-project" exists |
| 4 | + And a user named "yugo" exists with a bitcoin address |
| 5 | + And a user named "gaal" exists without a bitcoin address |
| 6 | + And our fee is "0" |
| 7 | + And a deposit of "500" is made |
| 8 | + And the most recent commit is "AAA" |
| 9 | + And a new commit "BBB" with parent "AAA" |
| 10 | + And a new commit "CCC" with parent "BBB" |
| 11 | + And the author of commit "BBB" is "yugo" |
| 12 | + And the author of commit "CCC" is "gaal" |
| 13 | + When the project syncs with the remote repo |
| 14 | + Then there should be a tip of "5" for commit "BBB" |
| 15 | + And there should be a tip of "4.95" for commit "CCC" |
| 16 | + Given I'm not logged in |
| 17 | + |
| 18 | + Scenario: Visitors should see all claimed tips but not unclaimed tips |
| 19 | + When I visit the "tips" page |
| 20 | + Then I should be on the "tips" page |
| 21 | + And I should see "yugo" |
| 22 | + But I should not see "gaal" |
| 23 | + |
| 24 | + Scenario: Visitors should see all claimed tips per project but not unclaimed tips |
| 25 | + When I visit the "seldon/seldons-project github-project" page |
| 26 | + Then I should be on the "seldon/seldons-project github-project" page |
| 27 | + And I should see "yugo" |
| 28 | + But I should not see "gaal" |
| 29 | + When I visit the "seldon/seldons-project github-project tips" page |
| 30 | + Then I should be on the "seldon/seldons-project github-project tips" page |
| 31 | + And I should see "yugo" |
| 32 | + But I should not see "gaal" |
| 33 | + |
| 34 | + Scenario: Visitors should see all claimed tips per user but not unclaimed tips |
| 35 | + When I visit the "yugo user tips" page |
| 36 | + Then I should be on the "yugo user tips" page |
| 37 | + And I should see "yugo" |
| 38 | + When I visit the "gaal user tips" page |
| 39 | + Then I should be on the "users" page |
| 40 | + And I should see "yugo" |
| 41 | + And I should not see "gaal" |
| 42 | + But I should see "User not found" |
0 commit comments