Commit c75526ea by Ahsan Ulhaq

changes for failing label test

parent 16a248b9
...@@ -126,7 +126,7 @@ class ChoiceGroupTemplateTest(TemplateTestCase): ...@@ -126,7 +126,7 @@ class ChoiceGroupTemplateTest(TemplateTestCase):
self.context = {'id': '1', self.context = {'id': '1',
'choices': choices, 'choices': choices,
'status': Status('correct'), 'status': Status('correct'),
'question_label': '', 'question_label': 'test',
'label': 'test', 'label': 'test',
'input_type': 'checkbox', 'input_type': 'checkbox',
'name_array_suffix': '1', 'name_array_suffix': '1',
...@@ -343,8 +343,8 @@ class ChoiceGroupTemplateTest(TemplateTestCase): ...@@ -343,8 +343,8 @@ class ChoiceGroupTemplateTest(TemplateTestCase):
def test_label(self): def test_label(self):
xml = self.render_to_xml(self.context) xml = self.render_to_xml(self.context)
xpath = "//fieldset[@aria-label='%s']" % self.context['label'] xpath = "//fieldset/legend"
self.assert_has_xpath(xml, xpath, self.context) self.assert_has_text(xml, xpath, self.context['question_label'])
class TextlineTemplateTest(TemplateTestCase): class TextlineTemplateTest(TemplateTestCase):
......
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