Increase height of non-JS textarea to fit query

Closes #1786
This commit is contained in:
Simon Willison 2022-08-18 09:06:02 -07:00
commit a3e6f1b167
2 changed files with 4 additions and 5 deletions

View file

@ -695,10 +695,8 @@ def test_query_error(app_client):
response = app_client.get("/fixtures?sql=select+*+from+notatable")
html = response.text
assert '<p class="message-error">no such table: notatable</p>' in html
assert (
'<textarea id="sql-editor" name="sql">select * from notatable</textarea>'
in html
)
assert '<textarea id="sql-editor" name="sql" style="height: 3em' in html
assert ">select * from notatable</textarea>" in html
assert "0 results" not in html