Merge pull request #3149 from alphagov/resize-all-textbox-dem

Let textareas resize automatically without having to highlight placeholders
This commit is contained in:
Chris Hill-Scott
2019-11-07 11:13:06 +00:00
committed by GitHub
19 changed files with 156 additions and 85 deletions

View File

@@ -346,6 +346,8 @@ def test_should_show_page_for_one_template(
assert "Template <em>content</em> with & entity" in str(
page.select_one('textarea')
)
assert page.select_one('textarea')['data-module'] == 'enhanced-textbox'
assert page.select_one('textarea')['data-highlight-placeholders'] == 'true'
assert "priority" not in str(page.select_one('main'))
mock_get_service_template.assert_called_with(SERVICE_ONE_ID, template_id, None)