'Scenario: Ensure that line breaks are properly reflected in certificate
Given I have a certificate with signatories
When I add signatory title with new line character
Then I see line break in certificate title'

def test_line_breaks_in_signatory_title(self):

    self.certificates_page.visit()
    certificate = self.create_and_verify_certificate('Course    Title    Override', 0, [{'name': 'Signatory    Name', 'title': 'Signatory    title    with    new    line    character    \n', 'organization': 'Signatory    Organization'}])
    certificate.wait_for_certificate_delete_button()
    self.assertEqual(len(self.certificates_page.certificates), 1)
    signatory_title = self.certificates_page.get_first_signatory_title()
    self.assertNotEqual([], re.findall('<br\\s*/?>', signatory_title))
