Updating icons on problem type editor
This commit is contained in:
@@ -14,7 +14,7 @@ import logging
|
||||
log = logging.getLogger('VideoPage')
|
||||
|
||||
VIDEO_BUTTONS = {
|
||||
'transcript': '.lang',
|
||||
'transcript': '.language-menu',
|
||||
'transcript_button': '.toggle-transcript',
|
||||
'cc_button': '.toggle-captions',
|
||||
'volume': '.volume',
|
||||
@@ -35,14 +35,14 @@ CSS_CLASS_NAMES = {
|
||||
'captions_text': '.subtitles li',
|
||||
'captions_text_getter': '.subtitles li[role="link"][data-index="1"]',
|
||||
'closed_captions': '.closed-captions',
|
||||
'error_message': '.video .video-player h3',
|
||||
'error_message': '.video .video-player .video-error',
|
||||
'video_container': '.video',
|
||||
'video_sources': '.video-player video source',
|
||||
'video_spinner': '.video-wrapper .spinner',
|
||||
'video_xmodule': '.xmodule_VideoModule',
|
||||
'video_init': '.is-initialized',
|
||||
'video_time': '.vidtime',
|
||||
'video_display_name': '.vert h2',
|
||||
'video_display_name': '.vert h3',
|
||||
'captions_lang_list': '.langs-list li',
|
||||
'video_speed': '.speeds .value',
|
||||
'poster': '.poster',
|
||||
@@ -631,7 +631,6 @@ class VideoPage(PageObject):
|
||||
|
||||
language_selector = VIDEO_MENUS["language"] + ' li[data-lang-code="{code}"]'.format(code=code)
|
||||
language_selector = self.get_element_selector(language_selector)
|
||||
|
||||
self.wait_for_element_visibility(language_selector, 'language menu is visible')
|
||||
self.q(css=language_selector).first.click()
|
||||
|
||||
|
||||
@@ -265,7 +265,7 @@ class StudioLibraryContainerCapaFilterTest(LibraryContentTestBase, TestWithSearc
|
||||
@property
|
||||
def _problem_headers(self):
|
||||
""" Expected XBLock headers according to populate_library_fixture """
|
||||
return frozenset(child.display_name.upper() for child in self.library_fixture.children)
|
||||
return frozenset(child.display_name for child in self.library_fixture.children)
|
||||
|
||||
def _set_library_content_settings(self, count=1, capa_type="Any Type"):
|
||||
"""
|
||||
@@ -304,7 +304,7 @@ class StudioLibraryContainerCapaFilterTest(LibraryContentTestBase, TestWithSearc
|
||||
self.assertEqual(len(children_headers), 1)
|
||||
self.assertLessEqual(
|
||||
children_headers,
|
||||
set([header.upper() for header in ["Problem Choice Group 1", "Problem Choice Group 2"]])
|
||||
set(["Problem Choice Group 1", "Problem Choice Group 2"])
|
||||
)
|
||||
|
||||
# Choice group test
|
||||
@@ -312,7 +312,7 @@ class StudioLibraryContainerCapaFilterTest(LibraryContentTestBase, TestWithSearc
|
||||
self.assertEqual(len(children_headers), 2)
|
||||
self.assertEqual(
|
||||
children_headers,
|
||||
set([header.upper() for header in ["Problem Select 1", "Problem Select 2"]])
|
||||
set(["Problem Select 1", "Problem Select 2"])
|
||||
)
|
||||
|
||||
# Missing problem type test
|
||||
|
||||
@@ -1013,7 +1013,7 @@ class ProblemExecutionTest(UniqueCourseTest):
|
||||
self.course_nav.go_to_section('Test Section', 'Test Subsection')
|
||||
|
||||
problem_page = ProblemPage(self.browser)
|
||||
self.assertEqual(problem_page.problem_name, 'PYTHON PROBLEM')
|
||||
self.assertEqual(problem_page.problem_name.upper(), 'PYTHON PROBLEM')
|
||||
|
||||
# Does the page have computation results?
|
||||
self.assertIn("What is the sum of 17 and 3?", problem_page.problem_text)
|
||||
|
||||
@@ -66,7 +66,7 @@ class CoursewareTest(UniqueCourseTest):
|
||||
"""
|
||||
self.courseware_page.visit()
|
||||
self.problem_page = ProblemPage(self.browser)
|
||||
self.assertEqual(self.problem_page.problem_name, 'TEST PROBLEM 1')
|
||||
self.assertEqual(self.problem_page.problem_name, 'Test Problem 1')
|
||||
|
||||
def _create_breadcrumb(self, index):
|
||||
""" Create breadcrumb """
|
||||
@@ -103,8 +103,8 @@ class CoursewareTest(UniqueCourseTest):
|
||||
|
||||
# Visit courseware as a student.
|
||||
self.courseware_page.visit()
|
||||
# Problem name should be "TEST PROBLEM 2".
|
||||
self.assertEqual(self.problem_page.problem_name, 'TEST PROBLEM 2')
|
||||
# Problem name should be "Test Problem 2".
|
||||
self.assertEqual(self.problem_page.problem_name, 'Test Problem 2')
|
||||
|
||||
def test_course_tree_breadcrumb(self):
|
||||
"""
|
||||
|
||||
@@ -56,7 +56,7 @@ class MatlabProblemTest(ProblemsTest):
|
||||
"""
|
||||
self.courseware_page.visit()
|
||||
matlab_problem_page = MatlabProblemPage(self.browser)
|
||||
self.assertEqual(matlab_problem_page.problem_name, 'TEST MATLAB PROBLEM')
|
||||
self.assertEqual(matlab_problem_page.problem_name, 'Test Matlab Problem')
|
||||
return matlab_problem_page
|
||||
|
||||
def test_run_code(self):
|
||||
|
||||
Reference in New Issue
Block a user