Commit b6aff95a by Sofiya Semenova

Removed flakey test

parent 42829bd2
...@@ -138,39 +138,6 @@ class SettingsMilestonesTest(StudioSettingsDetailsTest): ...@@ -138,39 +138,6 @@ class SettingsMilestonesTest(StudioSettingsDetailsTest):
""" """
self.assertTrue(self.settings_detail.entrance_exam_field) self.assertTrue(self.settings_detail.entrance_exam_field)
def test_enable_entrance_exam_for_course(self):
"""
Test that entrance exam should be created after checking the 'enable entrance exam' checkbox.
And also that the entrance exam is destroyed after deselecting the checkbox.
"""
self.settings_detail.require_entrance_exam(required=True)
self.settings_detail.save_changes()
# getting the course outline page.
course_outline_page = CourseOutlinePage(
self.browser, self.course_info['org'], self.course_info['number'], self.course_info['run']
)
course_outline_page.visit()
# title with text 'Entrance Exam' should be present on page.
self.assertTrue(element_has_text(
page=course_outline_page,
css_selector='span.section-title',
text='Entrance Exam'
))
# Delete the currently created entrance exam.
self.settings_detail.visit()
self.settings_detail.require_entrance_exam(required=False)
self.settings_detail.save_changes()
course_outline_page.visit()
self.assertFalse(element_has_text(
page=course_outline_page,
css_selector='span.section-title',
text='Entrance Exam'
))
def test_entrance_exam_has_unit_button(self): def test_entrance_exam_has_unit_button(self):
""" """
Test that entrance exam should be created after checking the 'enable entrance exam' checkbox. Test that entrance exam should be created after checking the 'enable entrance exam' checkbox.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment