repository.feature
5.73 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
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
99
100
101
102
103
104
105
@kalibro_restart
Feature: Repository
As a Mezuro user
I want to create, edit, remove and process a repository
Background:
Given the following users
| login | name |
| joaosilva | Joao Silva |
And I am logged in as "joaosilva"
And "Mezuro" plugin is enabled
And the following community
| identifier | name |
| mycommunity | My Community |
And "Joao Silva" is admin of "My Community"
And I have a Mezuro project with the following data
| name | Sample Project |
| description | Sample Description |
| community | mycommunity |
And I have a Mezuro configuration with the following data
| name | Sample Configuration|
| description | Sample Description |
| user | joaosilva |
And I have a Mezuro reading group with the following data
| name | Sample Reading group |
| description | Sample Description |
| user | joaosilva |
And I have a Mezuro metric configuration with previous created configuration and reading group
And I am on article "Sample Project"
Scenario: I want to see the Mezuro repository input form
When I follow "Add Repository"
Then I should see "Name"
And I should see "Description"
And I should see "License"
And I should see "Process Period"
And I should see "Type"
And I should see "Address"
And I should see "Configuration"
And I should see "Add" button
@selenium
Scenario: I want to add a repository with no name
Given I follow "Add Repository"
When I fill the fields with the new following data
| repository_name | |
| repository_description | My Description |
| repository_license | ISC License (ISC) |
| repository_process_period | Not Periodically |
| repository_type | SUBVERSION |
| repository_address | https://project.svn.sourceforge.net/svnroot/project |
| repository_configuration_id | Sample Configuration |
And I press "Add"
Then I should see "Please fill all fields marked with (*)." inside an alert
@selenium
Scenario: I want to add a repository with no address
Given I follow "Add Repository"
When I fill the fields with the new following data
| repository_name | My Name |
| repository_description | My Description |
| repository_license | ISC License (ISC) |
| repository_process_period | Not Periodically |
| repository_type | SUBVERSION |
| repository_address | |
| repository_configuration_id | Sample Configuration |
And I press "Add"
Then I should see "Please fill all fields marked with (*)." inside an alert
@selenium
Scenario: I want to add a repository with a invalid address
Given I follow "Add Repository"
When I fill the fields with the new following data
| repository_name | My Name |
| repository_description | My Description |
| repository_license | ISC License (ISC) |
| repository_process_period | Not Periodically |
| repository_type | GIT |
| repository_address | https://invalid-address.any-extension |
| repository_configuration_id | Sample Configuration |
And I press "Add"
Then I should see "Address does not match type GIT chosen." inside an alert
@selenium
Scenario: I want to add a repository with valid attributes
Given I follow "Add Repository"
When I fill the fields with the new following data
| repository_name | My Name |
| repository_description | My Description |
| repository_license | ISC License (ISC) |
| repository_process_period | Not Periodically |
| repository_type | GIT |
| repository_address | https://github.com/user/project.git |
| repository_configuration_id | Sample Configuration |
And I press "Add"
Then I should see "My Name"
And I should see "My Description"
And I should see "ISC License (ISC)"
And I should see "Not Periodically"
And I should see "GIT"
And I should see "https://github.com/user/project.git"
And I should see "Sample Configuration"
#Scenario: I want to see the repository edit form
# Given I have a repository with the following data