Merge pull request #3309 from alphagov/conversation-title

Updating the page title attribute on text message conversations
This commit is contained in:
Chris Hill-Scott
2020-02-18 13:44:35 +00:00
committed by GitHub
2 changed files with 11 additions and 1 deletions

View File

@@ -3,7 +3,7 @@
{% extends "withnav_template.html" %}
{% block service_page_title %}
{{ user_number }}
Received text message
{% endblock %}
{% block maincolumn_content %}

View File

@@ -95,6 +95,14 @@ def test_view_conversation(
'main.conversation',
service_id=SERVICE_ONE_ID,
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')
@@ -223,6 +231,7 @@ def test_view_conversation_with_empty_inbound(
'main.conversation',
service_id=SERVICE_ONE_ID,
notification_id=fake_uuid,
_test_page_title=False,
)
messages = page.select('.sms-message-wrapper')
@@ -242,6 +251,7 @@ def test_conversation_links_to_reply(
'main.conversation',
service_id=SERVICE_ONE_ID,
notification_id=fake_uuid,
_test_page_title=False,
)
assert page.select('main p')[-1].select_one('a')['href'] == (