From ce5d9b93b1180b216c92a97b37cf19a4ab0dc4b3 Mon Sep 17 00:00:00 2001 From: JonahStanley Date: Mon, 19 Aug 2013 08:56:55 -0400 Subject: [PATCH] Added the full range of help modal options Fixed pylint violations --- lms/djangoapps/courseware/features/help.feature | 17 +++++++++++++++-- lms/djangoapps/courseware/features/help.py | 1 + 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/lms/djangoapps/courseware/features/help.feature b/lms/djangoapps/courseware/features/help.feature index ff381c666b..61305b7cfa 100644 --- a/lms/djangoapps/courseware/features/help.feature +++ b/lms/djangoapps/courseware/features/help.feature @@ -7,12 +7,25 @@ Feature: The help module should work Scenario: I can submit a problem when I am not logged in Given I visit the homepage When I open the help form - And I report a "problem" + And I report a "" Then I should see confirmation that the issue was received + Examples: + | FeedbackType | + | problem | + | suggestion | + | question | + + Scenario: I can submit a problem when I am logged in Given I am in a course When I open the help form - And I report a "problem" without saying who I am + And I report a "" without saying who I am Then I should see confirmation that the issue was received + Examples: + | FeedbackType | + | problem | + | suggestion | + | question | + diff --git a/lms/djangoapps/courseware/features/help.py b/lms/djangoapps/courseware/features/help.py index 7691328f00..cf566ad95f 100644 --- a/lms/djangoapps/courseware/features/help.py +++ b/lms/djangoapps/courseware/features/help.py @@ -3,6 +3,7 @@ from lettuce import world, step + @step(u'I open the help form') def open_help_modal(step): help_css = 'div.help-tab'