Commit 49023ea1a238d63e2bbeae1ef426b13c775b02dc
1 parent
e23e7416
Exists in
colab
and in
4 other branches
Fixed Compound Metric Configuration acceptance test
Signed-off-by:Beatriz Rezener <beatrizrezener@gmail.com>
Showing
2 changed files
with
8 additions
and
1 deletions
Show diff stats
features/compound_metric_configuration/create.feature
| @@ -3,7 +3,7 @@ Feature: Compound Metric Configuration Creation | @@ -3,7 +3,7 @@ Feature: Compound Metric Configuration Creation | ||
| 3 | As a regular user | 3 | As a regular user |
| 4 | I should be able to create compound metric configurations | 4 | I should be able to create compound metric configurations |
| 5 | 5 | ||
| 6 | - @wip @kalibro_restart @javascript | 6 | + @kalibro_restart @javascript |
| 7 | Scenario: compound metric configuration creation | 7 | Scenario: compound metric configuration creation |
| 8 | Given I am a regular user | 8 | Given I am a regular user |
| 9 | And I am signed in | 9 | And I am signed in |
| @@ -24,6 +24,9 @@ Feature: Compound Metric Configuration Creation | @@ -24,6 +24,9 @@ Feature: Compound Metric Configuration Creation | ||
| 24 | And I set the select field "Scope" as "Class" | 24 | And I set the select field "Scope" as "Class" |
| 25 | And I set the select field "Reading Group" as "Scholar" | 25 | And I set the select field "Reading Group" as "Scholar" |
| 26 | And I press the Save button | 26 | And I press the Save button |
| 27 | + When I click the show link of the Coumpound Metric | ||
| 27 | Then I should see "My Compound Metric" | 28 | Then I should see "My Compound Metric" |
| 28 | And I should see "mcm" | 29 | And I should see "mcm" |
| 29 | And I should see "8" | 30 | And I should see "8" |
| 31 | + And I should see "AVERAGE" | ||
| 32 | + | ||
| 30 | \ No newline at end of file | 33 | \ No newline at end of file |
features/step_definitions/compound_metric_configuration_steps.rb
| @@ -22,6 +22,10 @@ When(/^I click the edit link of the Coumpound Metric$/) do | @@ -22,6 +22,10 @@ When(/^I click the edit link of the Coumpound Metric$/) do | ||
| 22 | page.find('tr', :text => @compound_metric_configuration.metric.name).click_link('Edit') | 22 | page.find('tr', :text => @compound_metric_configuration.metric.name).click_link('Edit') |
| 23 | end | 23 | end |
| 24 | 24 | ||
| 25 | +When(/^I click the show link of the Coumpound Metric$/) do | ||
| 26 | + page.find('tr', :text => "My Compound Metric").click_link('Show') | ||
| 27 | +end | ||
| 28 | + | ||
| 25 | Then(/^I should be at compound metric configuration sample page$/) do | 29 | Then(/^I should be at compound metric configuration sample page$/) do |
| 26 | expect(page).to have_content(@compound_metric_configuration.metric.name) | 30 | expect(page).to have_content(@compound_metric_configuration.metric.name) |
| 27 | expect(page).to have_content("Ranges") | 31 | expect(page).to have_content("Ranges") |