show.feature
2.21 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
59
60
61
Feature: Show Project
In order to know all the repositories of the given project and its contents
As a regular user
I should be able to see each of them
@kalibro_configuration_restart @kalibro_processor_restart
Scenario: Should not show the create repository link to user that doesn't own the project
Given I am a regular user
And I have a sample project
And I have sample project_attributes
And I have a sample configuration with native metrics
And I have a sample repository within the sample project
When I am at the Sample Project page
Then I should not see "New Repository"
And I should not see "Destroy project"
And I should not see Edit within table
@kalibro_processor_restart
Scenario: Should show the create repository link the project owner
Given I am a regular user
And I am signed in
And I own a sample project
And I have sample project_attributes
When I am at the Sample Project page
Then I should see "New Repository"
@kalibro_processor_restart @kalibro_configuration_restart
Scenario: Should not show the independent repositories for a project
Given I am a regular user
And I am signed in
And I own a sample project
And I have sample project_attributes
And I have a sample configuration
And I have a sample repository
When I am at the Sample Project page
Then I should see "There are no Repositories yet!"
@kalibro_processor_restart
Scenario: Considering the project has no repositories
Given I am a regular user
And I have a sample project
And I have sample project_attributes
When I am at the Sample Project page
Then I should see "There are no Repositories yet!"
@kalibro_configuration_restart @kalibro_processor_restart
Scenario: Considering the project has repositories
Given I am a regular user
And I have a sample project
And I have a sample configuration with native metrics
And I have a sample repository within the sample project
When I am at the Sample Project page
Then I should not see "There are no Repositories yet!"
@kalibro_processor_restart
Scenario: Checking project contents
Given I am a regular user
And I have a sample project
And I have sample project_attributes
When I am at the Sample Project page
Then the sample project should be there