email box empty styling
This commit is contained in:
parent
1ee8a58117
commit
5cb49f4cb1
19 changed files with 547 additions and 67 deletions
|
|
@ -1,4 +1,7 @@
|
|||
from app.services.email_templates import build_employee_invitation_email
|
||||
from app.services.email_templates import (
|
||||
build_employee_invitation_email,
|
||||
build_welcome_email,
|
||||
)
|
||||
|
||||
|
||||
def test_employee_invitation_uses_token_link_not_password():
|
||||
|
|
@ -22,3 +25,17 @@ def test_employee_invitation_uses_token_link_not_password():
|
|||
assert "test-token" in body_html
|
||||
assert "Initial password" not in body_html
|
||||
assert "unsubscribe" not in body_html.lower()
|
||||
|
||||
|
||||
def test_welcome_email_is_useful_not_marketing():
|
||||
subject, body_text, body_html = build_welcome_email(
|
||||
first_name="Anurag",
|
||||
work_email="anurag@road.rentals",
|
||||
organization="road.rentals",
|
||||
login_url="https://gentic.email/login",
|
||||
is_company_account=True,
|
||||
)
|
||||
assert subject == "Welcome to AGMail"
|
||||
assert "AG Agent" in body_text
|
||||
assert "anurag@road.rentals" in body_html
|
||||
assert "unsubscribe" not in body_text.lower()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue