create.feature
2.22 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
Feature: Metric Configuration Creation
In order to register my metric configurations
As a regular user
I should be able to create metric configurations
@kalibro_configuration_restart
Scenario: Should not create metric configurations without login
Given I have a sample configuration
And I am at the Sample Configuration page
Then I should not see "New Metric Configuration"
@kalibro_configuration_restart @javascript
Scenario: metric configuration creation
Given I am a regular user
And I am signed in
And I own a sample configuration
And I have a reading group named "Scholar"
And I am at the Sample Configuration page
And I click the Add Metric link
And I click the "Analizo" h3
And I click the Total Lines of Code link
And I fill the Weight field with "2"
And I set the select field "Aggregation Form" as "Average"
And I set the select field "Reading Group" as "Scholar"
When I press the Save button
Then I should see "Total Lines of Code"
Then I should see "2"
@kalibro_configuration_restart @javascript
Scenario: metric configuration creation
Given I am a regular user
And I am signed in
And I own a sample configuration
And I have a reading group named "Scholar"
And I am at the Sample Configuration page
And I click the Add Metric link
And I click the "Analizo" h3
And I click the Total Lines of Code link
When I click the Back link
Then I should be at the choose metric page
@kalibro_configuration_restart @javascript
Scenario: compound metric configuration creation with same code
Given I am a regular user
And I am signed in
And I own a sample configuration
And I have a reading group named "Scholar"
And I have a metric configuration with code "total_abstract_classes" within the given mezuro configuration
And I am at the Sample Configuration page
And I click the Add Metric link
And I click the Total Abstract Classes link
And I fill the Weight field with "2"
And I set the select field "Aggregation Form" as "Average"
And I set the select field "Reading Group" as "Scholar"
When I press the Save button
Then I should see "Code must be unique within a kalibro configuration"