updates to correct test failures

This commit is contained in:
stvnrlly
2023-01-05 14:35:37 -05:00
parent fdf6aca612
commit b00fea05bc
11 changed files with 23 additions and 23 deletions

View File

@@ -94,7 +94,7 @@ def mock_get_service_settings_page_common(
'Count in list of live services Yes Change if service is counted in list of live services',
'Billing details None Change billing details for service',
'Notes None Change the notes for the service',
'Organisation Test organisation Federal government Change organisation for service',
'Organization Test organisation Federal government Change organisation for service',
'Rate limit 3,000 per minute Change rate limit',
'Message limit 1,000 per day Change daily message limit',
'Free text message allowance 250,000 per year Change free text message allowance',
@@ -151,9 +151,9 @@ def test_no_go_live_link_for_service_without_organisation(
assert page.find('h1').text == 'Settings'
is_live = find_element_by_tag_and_partial_text(page, tag='td', string='Live')
assert normalize_spaces(is_live.find_next_sibling().text) == 'No (organisation must be set first)'
assert normalize_spaces(is_live.find_next_sibling().text) == 'No (organization must be set first)'
organisation = find_element_by_tag_and_partial_text(page, tag='td', string='Organisation')
organisation = find_element_by_tag_and_partial_text(page, tag='td', string='Organization')
assert normalize_spaces(organisation.find_next_siblings()[0].text) == 'Not set Federal government'
assert normalize_spaces(organisation.find_next_siblings()[1].text) == 'Change organisation for service'
@@ -177,7 +177,7 @@ def test_organisation_name_links_to_org_dashboard(
'main.service_settings', service_id=SERVICE_ONE_ID
)
org_row = find_element_by_tag_and_partial_text(response, tag='tr', string='Organisation')
org_row = find_element_by_tag_and_partial_text(response, tag='tr', string='Organization')
assert org_row.find('a')['href'] == url_for('main.organisation_dashboard', org_id=ORGANISATION_ID)
assert normalize_spaces(org_row.find('a').text) == 'Test organisation'
@@ -3807,7 +3807,7 @@ def test_select_organisation_shows_message_if_no_orgs(
service_id=service_one['id'],
)
assert normalize_spaces(page.select_one('main p').text) == "No organisations"
assert normalize_spaces(page.select_one('main p').text) == "No organizations"
assert not page.select_one('main button')