edition.feature
2.02 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
Feature: Metric Configuration edition
In order to interact with metric configurations
As a regular user
I should edit the informations of metric configurations
@kalibro_configuration_restart
Scenario: the configuration is not mine
Given I am a regular user
And I am signed in
And I have a sample configuration
And I have a sample reading group
And I have a sample metric configuration within the given mezuro configuration
When I am at the Sample Configuration page
Then I should not see Edit within table
@kalibro_configuration_restart
Scenario: editing a metric configuration successfully
Given I am a regular user
And I am signed in
And I own a sample configuration
And I have a sample reading group
And I have a sample metric configuration within the given mezuro configuration
And I am at the Sample Configuration page
When I click the Edit link
And I fill the Weight field with "3.0"
And I press the Save button
Then I should see "3.0"
@kalibro_configuration_restart
Scenario: trying to edit with blank fields
Given I am a regular user
And I am signed in
And I own a sample configuration
And I have a sample reading group
And I have a sample metric configuration within the given mezuro configuration
When I visit the sample metric configuration edit page
And I fill the Weight field with " "
And I press the Save button
Then I should see "Weight must be greater than 0"
@kalibro_configuration_restart
Scenario: Should not edit a metric configuration with invalid weight
Given I am a regular user
And I am signed in
And I own a sample configuration
And I have a sample reading group
And I have a sample metric configuration within the given mezuro configuration
When I visit the sample metric configuration edit page
And I fill the Weight field with "0"
And I set the select field "Aggregation Form" as "Median"
When I press the Save button
Then I should see "Weight must be greater than 0"