Link to history for SMS providers

Although the priority history is shown on the "Change priority"
page, this doesn't show active/inactive changes.
This commit is contained in:
Ben Thorner
2022-03-25 11:14:01 +00:00
parent a1c6b24749
commit 7a7d8f8aa6
2 changed files with 3 additions and 3 deletions

View File

@@ -23,7 +23,7 @@ Providers
field_headings_visible=True
) %}
{{ text_field(item.display_name) }}
{{ link_field(item.display_name, url_for('main.view_provider', provider_id=item.id)) }}
{{ text_field(item.priority) }}

View File

@@ -172,7 +172,7 @@ def test_should_show_all_providers(
domestic_sms_first_row = domestic_sms_table.tbody.find_all('tr')[0]
table_data = domestic_sms_first_row.find_all('td')
assert not table_data[0].find_all("a")
assert table_data[0].find_all("a")[0]['href'] == '/provider/6005e192-4738-4962-beec-ebd982d0b03f'
assert table_data[0].text.strip() == "Domestic SMS Provider"
assert table_data[1].text.strip() == "1"
assert table_data[2].text.strip() == "42"
@@ -183,7 +183,7 @@ def test_should_show_all_providers(
domestic_sms_second_row = domestic_sms_table.tbody.find_all('tr')[1]
table_data = domestic_sms_second_row.find_all('td')
assert not table_data[0].find_all("a")
assert table_data[0].find_all("a")[0]['href'] == '/provider/0bd529cd-a0fd-43e5-80ee-b95ef6b0d51f'
assert table_data[0].text.strip() == "Second Domestic SMS Provider"
assert table_data[1].text.strip() == "2"
assert table_data[2].text.strip() == "58"