Commit fea8fd59c5ddc84454417663b79dbfed519aee1b
Committed by
Rafael Manzo
1 parent
74f77ef1
Exists in
colab
and in
4 other branches
Fixed accpetance test.
Showing
4 changed files
with
4 additions
and
4 deletions
Show diff stats
app/views/repositories/_form.html.erb
| @@ -33,7 +33,6 @@ | @@ -33,7 +33,6 @@ | ||
| 33 | <div class="form-group"> | 33 | <div class="form-group"> |
| 34 | <%= f.label :configuration, class: 'control-label' %> | 34 | <%= f.label :configuration, class: 'control-label' %> |
| 35 | <% configuration_list = KalibroGatekeeperClient::Entities::Configuration.all.map { |conf| [conf.name, conf.id] } %> | 35 | <% configuration_list = KalibroGatekeeperClient::Entities::Configuration.all.map { |conf| [conf.name, conf.id] } %> |
| 36 | - <% p configuration_list %> | ||
| 37 | <%= f.select( :configuration_id, configuration_list, {class: 'form-control'} ) %> | 36 | <%= f.select( :configuration_id, configuration_list, {class: 'form-control'} ) %> |
| 38 | </div></br> | 37 | </div></br> |
| 39 | 38 |
features/repository/create.feature
| @@ -35,7 +35,7 @@ Scenario: repository creation blank validations | @@ -35,7 +35,7 @@ Scenario: repository creation blank validations | ||
| 35 | Then I should see "Name can't be blank" | 35 | Then I should see "Name can't be blank" |
| 36 | And I should see "Address can't be blank" | 36 | And I should see "Address can't be blank" |
| 37 | 37 | ||
| 38 | -@kalibro_restart @javascript @wip | 38 | +@kalibro_restart @javascript |
| 39 | Scenario: repository creation with name already taken | 39 | Scenario: repository creation with name already taken |
| 40 | Given I am a regular user | 40 | Given I am a regular user |
| 41 | And I am signed in | 41 | And I am signed in |
| @@ -49,6 +49,6 @@ Scenario: repository creation with name already taken | @@ -49,6 +49,6 @@ Scenario: repository creation with name already taken | ||
| 49 | And I set the select field "Type" as "GIT" | 49 | And I set the select field "Type" as "GIT" |
| 50 | And I fill the Address field with "https://github.com/mezuro/kalibro_gem.git" | 50 | And I fill the Address field with "https://github.com/mezuro/kalibro_gem.git" |
| 51 | And I set the select field "Process Period" as "1 day" | 51 | And I set the select field "Process Period" as "1 day" |
| 52 | - And I set the select field "Configuration" as "Java" | 52 | + And I set the select field "repository_configuration_id" as "Java" |
| 53 | When I press the Save button | 53 | When I press the Save button |
| 54 | Then I should see "There's already" | 54 | Then I should see "There's already" |
| 55 | \ No newline at end of file | 55 | \ No newline at end of file |
features/repository/show/date_select.feature
| @@ -3,7 +3,7 @@ Feature: Date Select | @@ -3,7 +3,7 @@ Feature: Date Select | ||
| 3 | As a regular user | 3 | As a regular user |
| 4 | I should be able to select a specific date | 4 | I should be able to select a specific date |
| 5 | 5 | ||
| 6 | - @kalibro_restart @javascript @wip | 6 | + @kalibro_restart @javascript |
| 7 | Scenario: With a specific date selected | 7 | Scenario: With a specific date selected |
| 8 | Given I have a sample project | 8 | Given I have a sample project |
| 9 | And I have a sample configuration with native metrics | 9 | And I have a sample configuration with native metrics |
features/step_definitions/repository_steps.rb
| @@ -58,6 +58,7 @@ Given(/^I ask for the metric results of the given module result$/) do | @@ -58,6 +58,7 @@ Given(/^I ask for the metric results of the given module result$/) do | ||
| 58 | end | 58 | end |
| 59 | 59 | ||
| 60 | Given(/^I see a sample metric's name$/) do | 60 | Given(/^I see a sample metric's name$/) do |
| 61 | + page.save_screenshot("/tmp/picture.png") | ||
| 61 | page.should have_content(@metric_results.first.metric_configuration_snapshot.metric.name) | 62 | page.should have_content(@metric_results.first.metric_configuration_snapshot.metric.name) |
| 62 | end | 63 | end |
| 63 | 64 |