diff --git a/problem_builder/tests/integration/test_instructor_tool.py b/problem_builder/tests/integration/test_instructor_tool.py index 4fa3bdf0..030cb10e 100644 --- a/problem_builder/tests/integration/test_instructor_tool.py +++ b/problem_builder/tests/integration/test_instructor_tool.py @@ -307,8 +307,8 @@ def test_pagination_multiple_results(self): start_button.click() + time.sleep(3) # Allow some time for result block to fully fade in. self.wait_until_visible(result_block) - time.sleep(1) # Allow some time for result block to fully fade in for contents in [ 'Test section', 'Test subsection', 'Test unit', diff --git a/problem_builder/tests/integration/test_questionnaire.py b/problem_builder/tests/integration/test_questionnaire.py index e999077b..6a1eba81 100644 --- a/problem_builder/tests/integration/test_questionnaire.py +++ b/problem_builder/tests/integration/test_questionnaire.py @@ -197,6 +197,7 @@ def test_mrq_feedback_popups(self): choice_wrapper.find_element_by_css_selector(".choice-selector input").click() item_feedback_icon = choice_wrapper.find_element_by_css_selector(".choice-result") if item_feedback_icon.is_displayed(): + self.wait_until_clickable(item_feedback_icon) item_feedback_icon.click() # clicking on item feedback icon item_feedback_popup = choice_wrapper.find_element_by_css_selector(".choice-tips") diff --git a/problem_builder/tests/integration/test_step_builder.py b/problem_builder/tests/integration/test_step_builder.py index 21f5dfaa..95690262 100644 --- a/problem_builder/tests/integration/test_step_builder.py +++ b/problem_builder/tests/integration/test_step_builder.py @@ -544,6 +544,7 @@ def test_mcq_feedback(self, choice_index, choice_text, expected_feedback, correc def review_mcq(self, step_builder, choice_index, expected_feedback, correct): correctness = 'correct' if correct else 'incorrect' mcq_link = step_builder.find_elements_by_css_selector('.{}-list li a'.format(correctness))[0] + self.wait_until_visible(mcq_link) mcq_link.click() mcq = step_builder.find_element_by_css_selector(".xblock-v1[data-name='mcq_1_1']") self.assert_choice_feedback(mcq, choice_index, expected_feedback, correct)