create.feature
2.21 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
Feature: Compound Metric Configuration Creation
In order to register my compound metric configurations
As a regular user
I should be able to create compound metric configurations
@kalibro_configuration_restart @javascript
Scenario: compound 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 have a sample metric configuration within the given mezuro configuration
And I am at the Sample Configuration page
And I click the Add Metric link
And I click the Compound Metric link
When I click the "Created Metrics" h3
Then I see the sample metric configuration name
And I see the sample metric configuration code
When I fill the Name field with "My Compound Metric"
And I fill the Description field with "Some description"
And I fill the Code field with "mcm"
And I fill the Script field with "8*8;"
And I fill the Weight field with "8"
And I set the select field "Scope" as "Class"
And I set the select field "Reading Group" as "Scholar"
And I press the Save button
When I click the show link of "My Compound Metric"
Then I should see "My Compound Metric"
And I should see "mcm"
And I should see "8"
@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 another compound metric configuration with code "Another_Code" within the given mezuro configuration
And I am at the Sample Configuration page
And I click the Add Metric link
And I click the Compound Metric link
When I fill the Name field with "My Compound Metric"
And I fill the Description field with "Some description"
And I fill the Code field with "Another_Code"
And I fill the Script field with "8*8;"
And I fill the Weight field with "8"
And I set the select field "Scope" as "Class"
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"