-
Notifications
You must be signed in to change notification settings - Fork 105
Expand file tree
/
Copy pathfind_project.feature
More file actions
58 lines (49 loc) · 2.42 KB
/
find_project.feature
File metadata and controls
58 lines (49 loc) · 2.42 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
Feature: Visitors may search for and add projects
Given I'm not signed in
Scenario: Visitors may find existing projects
Given a "github" project named "tip4commit/tip4commit" exists
And I visit the "projects" page
Then I should be on the "projects" page
And I should see "tip4commit/tip4commit"
When I fill "query" with: "tip4commit/tip4commit"
And I click "Find project"
Then I should be on the "tip4commit/tip4commit github-project" page
And I should see "tip4commit/tip4commit"
But I should not see "Project not found"
Scenario: Visitors may not find non-existing projects
Given I visit the "projects" page
Then I should be on the "projects" page
When I fill "query" with: "no-such-repo"
And I click "Find project"
Then I should be on the "search" page
And I should see "Project not found"
But I should not see "no-such-repo"
Scenario: Visitors may not add new projects
Given I visit the "projects" page
Then I should be on the "projects" page
When I fill "query" with: "https://github.com/tip4commit/tip4commit"
And I click "Find project"
Then I should be on the "search" page
And I should see "Project not found"
But I should not see "tip4commit/tip4commit"
Scenario: Projects with individual owner should not show project avatar
Given a "github" project named "seldon/seldons-project" exists
And I visit the "projects" page
Then I should be on the "projects" page
And I should see "seldon/seldons-project"
And there should not be a project avatar image visible
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 "seldon/seldons-project"
And there should not be a project avatar image visible
@vcr-ignore-params
Scenario: Projects owned by an organization should show project avatar
Given a "real-github" project named "tip4commit/tip4commit" exists
And I visit the "projects" page
Then I should be on the "projects" page
And I should see "tip4commit/tip4commit"
And there should be a project avatar image visible
When I visit the "tip4commit/tip4commit github-project" page
Then I should be on the "tip4commit/tip4commit github-project" page
And I should see "tip4commit/tip4commit"
And there should be a project avatar image visible