edit.feature
2.57 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
Feature: Kalibro Range Edit
In order to be able to update my kalibro range info
As a regular user
I should be able to edit my kalibro ranges
@kalibro_configuration_restart
Scenario: successfully editing a kalibro range which belongs to a metric configuration
Given I am a regular user
And I am signed in
And I own a sample configuration
And I own a sample reading group
And I have a sample metric configuration within the given mezuro configuration
And I have a sample reading within the sample reading group labeled "My Reading"
And I have a sample range within the sample metric configuration with beginning "1.1"
And I am at the Edit Kalibro Range page
And the select field "Reading" is set as "My Reading"
And the field "Beginning" should be filled with "1.1"
And the field "End" should be filled with "5.1"
And the field "Comments" should be filled with "Comment"
When I fill the Beginning field with "2.2"
And I press the Save button
Then I should see "2.2"
@kalibro_configuration_restart
Scenario: successfully editing a kalibro range which belongs to a compound metric configuration
Given I am a regular user
And I am signed in
And I own a sample configuration
And I own a sample reading group
And I have a sample compound metric configuration within the given mezuro configuration
And I have a sample reading within the sample reading group labeled "My Reading"
And I have a sample range within the sample compound metric configuration with beginning "1.1"
And I am at the Edit Kalibro Range page for the compound metric configuration
And the select field "Reading" is set as "My Reading"
And the field "Beginning" should be filled with "1.1"
And the field "End" should be filled with "5.1"
And the field "Comments" should be filled with "Comment"
When I fill the Beginning field with "2.2"
And I press the Save button
Then I should see "2.2"
@kalibro_configuration_restart
Scenario: editing a kalibro range with blank fields
Given I am a regular user
And I am signed in
And I own a sample configuration
And I own a sample reading group
And I have a sample metric configuration within the given mezuro configuration
And I have a sample reading within the sample reading group labeled "My Reading"
And I have a sample range within the sample metric configuration with beginning "1"
And I am at the Edit Kalibro Range page
When I fill the Beginning field with " "
And I press the Save button
Then I should see "Beginning can't be blank"