mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-23 15:57:23 -04:00
Fix references to email HTML in tests
This commit is contained in:
@@ -54,7 +54,7 @@ def test_displays_both_branding(client, mock_get_email_branding_with_both_brand_
|
|||||||
|
|
||||||
assert page.find("a", attrs={"href": "https://www.gov.uk"})
|
assert page.find("a", attrs={"href": "https://www.gov.uk"})
|
||||||
assert page.find("img", attrs={"src": re.compile("example.png$")})
|
assert page.find("img", attrs={"src": re.compile("example.png$")})
|
||||||
assert page.select("body > table table > tr:nth-of-type(2) > td:nth-of-type(5)")[0]\
|
assert page.select("body > table:nth-of-type(3) table > tr:nth-of-type(1) > td:nth-of-type(2)")[0]\
|
||||||
.get_text().strip() == 'Organisation text' # brand text is set
|
.get_text().strip() == 'Organisation text' # brand text is set
|
||||||
|
|
||||||
|
|
||||||
@@ -71,7 +71,7 @@ def test_displays_org_branding(client, mock_get_email_branding):
|
|||||||
assert not page.find("a", attrs={"href": "https://www.gov.uk"})
|
assert not page.find("a", attrs={"href": "https://www.gov.uk"})
|
||||||
assert page.find("img", attrs={"src": re.compile("example.png")})
|
assert page.find("img", attrs={"src": re.compile("example.png")})
|
||||||
assert not page.select("body > table > tr > td[bgcolor='#f00']") # banner colour is not set
|
assert not page.select("body > table > tr > td[bgcolor='#f00']") # banner colour is not set
|
||||||
assert page.select("body > table table > tr:nth-of-type(2) > td:nth-of-type(5)")[0]\
|
assert page.select("body > table:nth-of-type(1) > tr:nth-of-type(1) > td:nth-of-type(2)")[0]\
|
||||||
.get_text().strip() == 'Organisation text' # brand text is set
|
.get_text().strip() == 'Organisation text' # brand text is set
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user