Commit 2c0b51ef by Tim Krones

Fix inconsistent naming (problem title vs. problem header).

parent 5b2037b0
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
/* Header, instruction text, etc. */ /* Header, instruction text, etc. */
.xblock--drag-and-drop .problem-header { .xblock--drag-and-drop .problem-title {
display: inline-block; display: inline-block;
margin: 0 0 15px 0; margin: 0 0 15px 0;
} }
......
...@@ -215,7 +215,7 @@ ...@@ -215,7 +215,7 @@
}; };
var mainTemplate = function(ctx) { var mainTemplate = function(ctx) {
var problemTitle = ctx.show_title ? h('h2.problem-header', {innerHTML: ctx.title_html}) : null; var problemTitle = ctx.show_title ? h('h2.problem-title', {innerHTML: ctx.title_html}) : null;
var problemHeader = ctx.show_problem_header ? h('h3.title1', gettext('Problem')) : null; var problemHeader = ctx.show_problem_header ? h('h3.title1', gettext('Problem')) : null;
var popupSelector = 'div.popup'; var popupSelector = 'div.popup';
if (ctx.popup_html && !ctx.last_action_correct) { if (ctx.popup_html && !ctx.last_action_correct) {
......
...@@ -52,8 +52,8 @@ class TestDragAndDropTitleAndProblem(BaseIntegrationTest): ...@@ -52,8 +52,8 @@ class TestDragAndDropTitleAndProblem(BaseIntegrationTest):
page = self.go_to_page(const_page_name) page = self.go_to_page(const_page_name)
if show_title: if show_title:
problem_header = page.find_element_by_css_selector('h2.problem-header') problem_header = page.find_element_by_css_selector('h2.problem-title')
self.assertEqual(self.get_element_html(problem_header), display_name) self.assertEqual(self.get_element_html(problem_header), display_name)
else: else:
with self.assertRaises(NoSuchElementException): with self.assertRaises(NoSuchElementException):
page.find_element_by_css_selector('h2.problem-header') page.find_element_by_css_selector('h2.problem-title')
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