Adding UXPL classnames to headings
This commit is contained in:
@@ -44,5 +44,5 @@ class LibraryContentXBlockWrapper(PageObject):
|
||||
"""
|
||||
Gets headers of all child XBlocks as list of strings
|
||||
"""
|
||||
child_blocks_headers = self.q(css=self._bounded_selector("div[data-id] h3.problem-header"))
|
||||
child_blocks_headers = self.q(css=self._bounded_selector("div[data-id] .problem-header"))
|
||||
return frozenset(child.text for child in child_blocks_headers)
|
||||
|
||||
@@ -115,7 +115,7 @@ class AnnotatableProblemTest(UniqueCourseTest):
|
||||
self.courseware_page.visit()
|
||||
annotation_component_page = AnnotationComponentPage(self.browser)
|
||||
self.assertEqual(
|
||||
annotation_component_page.component_name, 'TEST ANNOTATION MODULE'.format()
|
||||
annotation_component_page.component_name, 'Test Annotation Module'.format()
|
||||
)
|
||||
return annotation_component_page
|
||||
|
||||
|
||||
@@ -630,10 +630,11 @@ class YouTubeVideoTest(VideoBaseTest):
|
||||
"""
|
||||
Scenario: Multiple videos in sequentials all load and work, switching between sequentials
|
||||
Given it has videos "A,B" in "Youtube" mode in position "1" of sequential
|
||||
And videos "E,F" in "Youtube" mode in position "2" of sequential
|
||||
And videos "C,D" in "Youtube" mode in position "2" of sequential
|
||||
"""
|
||||
self.verticals = [
|
||||
[{'display_name': 'A'}, {'display_name': 'B'}], [{'display_name': 'C'}, {'display_name': 'D'}]
|
||||
[{'display_name': 'A'}, {'display_name': 'B'}],
|
||||
[{'display_name': 'C'}, {'display_name': 'D'}]
|
||||
]
|
||||
|
||||
tab1_video_names = ['A', 'B']
|
||||
@@ -651,15 +652,16 @@ class YouTubeVideoTest(VideoBaseTest):
|
||||
|
||||
# go to video
|
||||
self.navigate_to_video()
|
||||
|
||||
execute_video_steps(tab1_video_names)
|
||||
|
||||
# go to second sequential position
|
||||
# import ipdb; ipdb.set_trace()
|
||||
self.go_to_sequential_position(2)
|
||||
execute_video_steps(tab2_video_names)
|
||||
|
||||
# go back to first sequential position
|
||||
# we are again playing tab 1 videos to ensure that switching didn't broke some video functionality.
|
||||
# import ipdb; ipdb.set_trace()
|
||||
self.go_to_sequential_position(1)
|
||||
execute_video_steps(tab1_video_names)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user