Add hidden text for pills on job page

The links in the blue boxes on the job page needed hidden text so that
they work out of context. This changes the text from "10 sending" to "10
sending text messages" (with the message type hidden text).
This commit is contained in:
Katie Smith
2021-02-24 14:34:56 +00:00
parent 6512b8fad3
commit 82318387de
3 changed files with 17 additions and 8 deletions

View File

@@ -190,7 +190,7 @@ def test_should_show_job_in_progress(
normalize_spaces(link.text)
for link in page.select('.pill a:not(.pill-item--selected)')
] == [
'10 sending', '0 delivered', '0 failed'
'10 sending text messages', '0 delivered text messages', '0 failed text messages'
]
assert page.select_one('p.hint').text.strip() == 'Report is 50% complete…'
@@ -215,7 +215,7 @@ def test_should_show_job_without_notifications(
normalize_spaces(link.text)
for link in page.select('.pill a:not(.pill-item--selected)')
] == [
'10 sending', '0 delivered', '0 failed'
'10 sending text messages', '0 delivered text messages', '0 failed text messages'
]
assert page.select_one('p.hint').text.strip() == 'Report is 50% complete…'
assert page.select_one('tbody').text.strip() == 'No messages to show yet…'