diff options
author | Joachim Filip Ignacy Bartosik <jbartosik@gmail.com> | 2010-07-16 12:43:37 +0200 |
---|---|---|
committer | Joachim Filip Ignacy Bartosik <jbartosik@gmail.com> | 2010-07-29 19:49:16 +0200 |
commit | 64f31bfd600b57b99b133cbad3410dd07d64f846 (patch) | |
tree | f3602086e174da85c4c2c35f295cfd69fe808336 /features/answer_text_question.feature | |
parent | Notify users trying to answer email question if question wasn't recognised (diff) | |
download | recruiting-webapp-64f31bfd600b57b99b133cbad3410dd07d64f846.tar.gz recruiting-webapp-64f31bfd600b57b99b133cbad3410dd07d64f846.tar.bz2 recruiting-webapp-64f31bfd600b57b99b133cbad3410dd07d64f846.zip |
Cover editing questions content with cucumber features
Changes needed to pass features included.
Diffstat (limited to 'features/answer_text_question.feature')
-rw-r--r-- | features/answer_text_question.feature | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/features/answer_text_question.feature b/features/answer_text_question.feature index 7230fd9..79c8ba8 100644 --- a/features/answer_text_question.feature +++ b/features/answer_text_question.feature @@ -14,3 +14,22 @@ Feature: Answering text question When I press "Create Answer" Then I should see "The answer was created successfully" within ".flash.notice" + + Scenario: Create and edit text question + Given I am logged in as administrator + When I follow "Suggestion questions" + And I follow "New question" + And I fill in "some question" for "question[title]" + And I press "Create Question" + Then I should see "The question was created successfully" within ".flash.notice" + + When I follow "Add text content" + And I fill in "some question" for "question_content_text[content]" + And press "Create Question Content Text" + Then I should see "The question content text was created successfully" within ".flash.notice" + + When I am on show "some question" question page + And I follow "content" + And I fill in "Some question." for "question_content_text[content]" + And press "Save" + Then I should see "Changes to the question content text were saved" within ".flash.notice" |