edit.feature
2.24 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
Feature: Repository Edit
In Order to be able to update my repositories info
As a regular user
I should be able to edit my repositories
@kalibro_restart
Scenario: editing a repository successfully
Given I am a regular user
And I am signed in
And I own a sample project
And I have a sample configuration with native metrics
And I have a sample repository within the sample project named "QtCalculator"
And I am at repository edit page
Then the field "Name" should be filled with "QtCalculator"
And the field "Type" should be filled with "GIT"
And the field "Address" should be filled with "https://git.gitorious.org/sbking/sbking.git"
And I set the select field "Process Period" as "Weekly"
And I set the select field "License" as "EU DataGrid Software License (EUDatagrid)"
When I fill the Name field with "MedSquare"
And I set the select field "Type" as "GIT"
And I fill the Address field with "git://git.code.sf.net/p/medsquare/git"
And I press the Save button
Then I should see "MedSquare"
And I should see "git://git.code.sf.net/p/medsquare/git"
And I should see "Weekly"
And I should see "EU DataGrid Software License (EUDatagrid)"
@kalibro_restart
Scenario: editing a repository with blank fields
Given I am a regular user
And I am signed in
And I own a sample project
And I have a sample configuration with native metrics
And I have a sample repository within the sample project named "QtCalculator"
And I am at repository edit page
When I fill the Name field with " "
And I fill the Address field with " "
And I press the Save button
Then I should see "Name can't be blank"
And I should see "Address can't be blank"
@kalibro_restart
Scenario: editing a repository with already taken name
Given I am a regular user
And I am signed in
And I own a sample project
And I have a sample configuration with native metrics
And I have a sample repository within the sample project named "MedSquare"
And I have a sample repository within the sample project named "QtCalculator"
And I am at repository edit page
When I fill the Name field with "MedSquare"
And I press the Save button
Then I should see "There's already"