mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-20 22:40:31 -04:00
Fix tests
There’s an extra paragraph in the request to go live text now, so we need to skip it to find the good stuff.
This commit is contained in:
@@ -430,13 +430,12 @@ def test_show_restricted_service(
|
||||
assert page.find('h1').text == 'Settings'
|
||||
assert page.find_all('h2')[0].text == 'Your service is in trial mode'
|
||||
|
||||
request_to_live = page.select_one('main p')
|
||||
request_to_live = page.select('main p')[1]
|
||||
request_to_live_link = request_to_live.select_one('a')
|
||||
|
||||
assert normalize_spaces(request_to_live.text) == expected_text
|
||||
|
||||
if expected_link:
|
||||
assert request_to_live_link.text.strip() == 'request to go live'
|
||||
assert request_to_live_link.text.strip() == 'send us a request to go live'
|
||||
assert request_to_live_link['href'] == url_for('main.request_to_go_live', service_id=SERVICE_ONE_ID)
|
||||
else:
|
||||
assert not request_to_live_link
|
||||
|
||||
Reference in New Issue
Block a user