-
Notifications
You must be signed in to change notification settings - Fork 105
Expand file tree
/
Copy pathview_tips.feature
More file actions
42 lines (39 loc) · 1.87 KB
/
view_tips.feature
File metadata and controls
42 lines (39 loc) · 1.87 KB
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
Feature: Visitors should be able to see claimed tips
Background:
Given a "github" project named "seldon/seldons-project" exists
And a developer named "yugo" exists with a bitcoin address
And a developer named "gaal" exists without a bitcoin address
And our fee is "0"
And a deposit of "500" is made
And the most recent commit is "AAA"
And a new commit "BBB" is made with parent "AAA"
And a new commit "CCC" is made with parent "BBB"
And the author of commit "BBB" is "yugo"
And the author of commit "CCC" is "gaal"
When the project syncs with the remote repo
Then there should be a tip of "5" for commit "BBB"
And there should be a tip of "4.95" for commit "CCC"
Given I'm not signed in
Scenario: Visitors should see all claimed tips but not unclaimed tips
When I visit the "tips" page
Then I should be on the "tips" page
And I should see "yugo"
But I should not see "gaal"
Scenario: Visitors should see all claimed tips per project but not unclaimed tips
When I visit the "seldon/seldons-project github-project" page
Then I should be on the "seldon/seldons-project github-project" page
And I should see "yugo"
But I should not see "gaal"
When I visit the "seldon/seldons-project github-project tips" page
Then I should be on the "seldon/seldons-project github-project tips" page
And I should see "yugo"
But I should not see "gaal"
Scenario: Visitors should see all claimed tips per user but not unclaimed tips
When I visit the "yugo user tips" page
Then I should be on the "yugo user tips" page
And I should see "BBB 5.00000000 Ƀ Waiting for withdrawal"
When I visit the "gaal user tips" page
Then I should be on the "users" page
And I should see "User not found"
And I should not see "BBB"
And I should not see "CCC"