A bug was reported on where editting a template with a breaking change.

The url was not being properly formed, missing the tempalte_id, meaning the back button on the page did not work.

This fixes that, includes a check of the url for the back button.
This commit is contained in:
Rebecca Law
2017-01-24 17:42:18 +00:00
parent 6817d84808
commit de94f369a7
3 changed files with 6 additions and 1 deletions

View File

@@ -279,7 +279,9 @@ def test_should_show_interstitial_when_making_breaking_change(
assert response.status_code == 200
page = BeautifulSoup(response.data.decode('utf-8'), 'html.parser')
assert page.h1.string.strip() == "Confirm changes"
assert page.find('a', {'class': 'page-footer-back-link'})['href'] == url_for(".edit_service_template",
service_id=service_id,
template_id=template_id)
for key, value in {
'name': 'new name',
'subject': 'reminder',