Make it impossible to click "final check" without selecting a choice
This commit is contained in:
committed by
Dmitry Viskov
parent
91c0517b7a
commit
4c83a2f0de
@@ -180,16 +180,22 @@ Feature: LMS.Answer problems
|
||||
|
||||
Examples:
|
||||
| ProblemType | Points Possible |
|
||||
| drop down | 1 point possible |
|
||||
| multiple choice | 1 point possible |
|
||||
| checkbox | 1 point possible |
|
||||
| radio | 1 point possible |
|
||||
#| string | 1 point possible |
|
||||
| numerical | 1 point possible |
|
||||
| formula | 1 point possible |
|
||||
| script | 2 points possible |
|
||||
| image | 1 point possible |
|
||||
|
||||
Scenario: I can't submit a blank answer
|
||||
Given I am viewing a "<ProblemType>" problem
|
||||
Then I can't check a problem
|
||||
|
||||
Examples:
|
||||
| ProblemType |
|
||||
| drop down |
|
||||
| multiple choice |
|
||||
| checkbox |
|
||||
| radio |
|
||||
| string |
|
||||
| numerical |
|
||||
| formula |
|
||||
| script |
|
||||
|
||||
Scenario: I can reset the correctness of a problem after changing my answer
|
||||
Given I am viewing a "<ProblemType>" problem
|
||||
@@ -234,21 +240,3 @@ Feature: LMS.Answer problems
|
||||
| multiple choice | incorrect | correct |
|
||||
| radio | correct | incorrect |
|
||||
| radio | incorrect | correct |
|
||||
|
||||
|
||||
Scenario: I can reset the correctness of a problem after submitting a blank answer
|
||||
Given I am viewing a "<ProblemType>" problem
|
||||
When I check a problem
|
||||
And I input an answer on a "<ProblemType>" problem "correctly"
|
||||
Then my "<ProblemType>" answer is marked "unanswered"
|
||||
|
||||
Examples:
|
||||
| ProblemType |
|
||||
| drop down |
|
||||
| multiple choice |
|
||||
| checkbox |
|
||||
| radio |
|
||||
#| string |
|
||||
| numerical |
|
||||
| formula |
|
||||
| script |
|
||||
|
||||
@@ -92,12 +92,21 @@ def check_problem(step):
|
||||
# first scroll down so the loading mathjax button does not
|
||||
# cover up the Check button
|
||||
world.browser.execute_script("window.scrollTo(0,1024)")
|
||||
assert world.is_css_not_present("button.check.is-disabled")
|
||||
world.css_click("button.check")
|
||||
|
||||
# Wait for the problem to finish re-rendering
|
||||
world.wait_for_ajax_complete()
|
||||
|
||||
|
||||
@step(u"I can't check a problem")
|
||||
def assert_cant_check_problem(step): # pylint: disable=unused-argument
|
||||
# first scroll down so the loading mathjax button does not
|
||||
# cover up the Check button
|
||||
world.browser.execute_script("window.scrollTo(0,1024)")
|
||||
assert world.is_css_present("button.check.is-disabled")
|
||||
|
||||
|
||||
@step(u'The "([^"]*)" problem displays a "([^"]*)" answer')
|
||||
def assert_problem_has_answer(step, problem_type, answer_class):
|
||||
'''
|
||||
|
||||
Reference in New Issue
Block a user