Remove flaky problem reset tests (#20870)

This commit is contained in:
Jeremy Bowman
2019-06-24 13:20:50 -04:00
committed by GitHub
parent eeb265e276
commit 50a2641e1c

View File

@@ -1056,31 +1056,6 @@ class FormulaProblemRandomizeTest(ProblemsTest):
'problem', 'TEST PROBLEM', data=xml, metadata={'show_reset_button': True, 'rerandomize': 'always'}
)
@ddt.data(
('R_1/R_3', 'incorrect')
)
@ddt.unpack
def test_reset_problem_after_submission(self, input_value, correctness):
"""
Scenario: Test that reset button works regardless the submission correctness status.
Given I am attempting a formula problem type with randomization:always configuration
When I input the answer
Then I should be able to see the MathJax generated preview
When I submit the problem
Then I should be able to see the reset button
When reset button is clicked
Then the input pane contents should be clear
"""
problem_page = ProblemPage(self.browser)
problem_page.fill_answer_numerical(input_value)
problem_page.verify_mathjax_rendered_in_preview()
problem_page.click_submit()
self.assertEqual(problem_page.get_simpleprob_correctness(), correctness)
self.assertTrue(problem_page.is_reset_button_present())
problem_page.click_reset()
self.assertEqual(problem_page.get_numerical_input_value, '')
@ddt.data(
('R_1*R_2', 'incorrect', 'R_1*R_2/R_3'),
('R_1*R_2/R_3', 'correct', 'R_1/R_3')