Add test for textarea

Also remove redundant error handling - if unexpected error happens,
it will be handled at the app level.
This commit is contained in:
Pea Tyczynska
2021-01-19 18:13:03 +00:00
parent 5ec49fc976
commit 5eb6ac2311
2 changed files with 5 additions and 8 deletions

View File

@@ -5260,6 +5260,7 @@ def test_view_edit_service_notes(
page = BeautifulSoup(response.data.decode('utf-8'), 'html.parser')
assert page.select_one('h1').text == "Edit service notes"
assert page.find('label', class_="form-label").text.strip() == "Notes"
assert page.find('textarea').attrs["name"] == "notes"
def test_update_service_notes(