mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-06 23:48:25 -04:00
Updating the page title attribute on text message conversations
Changing to "Received text message"
This commit is contained in:
committed by
Chris Hill-Scott
parent
49eb2a8354
commit
f9e2e49dad
@@ -3,7 +3,7 @@
|
|||||||
{% extends "withnav_template.html" %}
|
{% extends "withnav_template.html" %}
|
||||||
|
|
||||||
{% block service_page_title %}
|
{% block service_page_title %}
|
||||||
{{ user_number }}
|
Received text message
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block maincolumn_content %}
|
{% block maincolumn_content %}
|
||||||
|
|||||||
@@ -95,6 +95,14 @@ def test_view_conversation(
|
|||||||
'main.conversation',
|
'main.conversation',
|
||||||
service_id=SERVICE_ONE_ID,
|
service_id=SERVICE_ONE_ID,
|
||||||
notification_id=fake_uuid,
|
notification_id=fake_uuid,
|
||||||
|
_test_page_title=False,
|
||||||
|
)
|
||||||
|
|
||||||
|
assert normalize_spaces(page.select_one('title').text) == (
|
||||||
|
'Received text message – service one – GOV.UK Notify'
|
||||||
|
)
|
||||||
|
assert normalize_spaces(page.select_one('h1').text) == (
|
||||||
|
'07123 456789'
|
||||||
)
|
)
|
||||||
|
|
||||||
messages = page.select('.sms-message-wrapper')
|
messages = page.select('.sms-message-wrapper')
|
||||||
@@ -223,6 +231,7 @@ def test_view_conversation_with_empty_inbound(
|
|||||||
'main.conversation',
|
'main.conversation',
|
||||||
service_id=SERVICE_ONE_ID,
|
service_id=SERVICE_ONE_ID,
|
||||||
notification_id=fake_uuid,
|
notification_id=fake_uuid,
|
||||||
|
_test_page_title=False,
|
||||||
)
|
)
|
||||||
|
|
||||||
messages = page.select('.sms-message-wrapper')
|
messages = page.select('.sms-message-wrapper')
|
||||||
@@ -242,6 +251,7 @@ def test_conversation_links_to_reply(
|
|||||||
'main.conversation',
|
'main.conversation',
|
||||||
service_id=SERVICE_ONE_ID,
|
service_id=SERVICE_ONE_ID,
|
||||||
notification_id=fake_uuid,
|
notification_id=fake_uuid,
|
||||||
|
_test_page_title=False,
|
||||||
)
|
)
|
||||||
|
|
||||||
assert page.select('main p')[-1].select_one('a')['href'] == (
|
assert page.select('main p')[-1].select_one('a')['href'] == (
|
||||||
|
|||||||
Reference in New Issue
Block a user