diff --git a/features/reading/new.feature b/features/reading/new.feature index 9b80c42..a6530d5 100644 --- a/features/reading/new.feature +++ b/features/reading/new.feature @@ -14,6 +14,7 @@ Feature: New reading And I should see "Label" And I should see "Grade" And I should see "Color" + And I press the Pick color button @kalibro_restart Scenario: With valid fields @@ -26,7 +27,16 @@ Feature: New reading And I fill the Color field with "00000ff00" When I press the Save button Then I should be in the Sample Reading Group page - + + @kalibro_restart @javascript + Scenario: Using Colorpicker + Given I am a regular user + And I am signed in + And I own a sample reading group + And I am at the New Reading page + When I press the Pick color button + Then I should see a color picker Canvas + @kalibro_restart Scenario: With an existing label (Label uniqueness test) Given I am a regular user diff --git a/features/step_definitions/reading_steps.rb b/features/step_definitions/reading_steps.rb index 6a08290..92e323b 100644 --- a/features/step_definitions/reading_steps.rb +++ b/features/step_definitions/reading_steps.rb @@ -22,3 +22,6 @@ Then(/^I should be at the New Reading page$/) do visit new_reading_group_reading_path(@reading_group.id) end +Then(/^I should see a color picker Canvas$/) do + page.find('div.colorpicker') +end -- libgit2 0.21.2