mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-08 01:58:26 -04:00
Make testing for 'text' value more specific
Just duplicting the 'name' field could produce a false-positive.
This commit is contained in:
@@ -45,7 +45,7 @@ def test_edit_email_branding_shows_the_correct_branding_info(
|
||||
|
||||
assert page.select_one('#logo-img > img')['src'].endswith('/example.png')
|
||||
assert page.select_one('#name').attrs.get('value') == 'Organisation name'
|
||||
assert page.select_one('#text').attrs.get('value') == 'Organisation name'
|
||||
assert page.select_one('#text').attrs.get('value') == 'Organisation text'
|
||||
assert page.select_one('#colour').attrs.get('value') == '#f00'
|
||||
|
||||
|
||||
|
||||
@@ -2474,7 +2474,7 @@ def mock_get_email_branding(mocker, fake_uuid):
|
||||
'email_branding': {
|
||||
'logo': 'example.png',
|
||||
'name': 'Organisation name',
|
||||
'text': 'Organisation name',
|
||||
'text': 'Organisation text',
|
||||
'id': fake_uuid,
|
||||
'colour': '#f00'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user