fix: say that {company} takes the branding of the web address Bulwark is opened on

This commit is contained in:
Linus Rath
2026-10-28 04:37:24 +01:00
parent daae45e379
commit 89f0cd7e92
2 changed files with 3 additions and 1 deletions
@@ -78,6 +78,8 @@ describe('Organisation > Signatures', () => {
fireEvent.focus(text);
fireEvent.click(screen.getByRole('button', { name: '{department}' }));
await waitFor(() => expect((screen.getByTestId('org-signature-text') as HTMLTextAreaElement).value).toBe('{department}'));
// Branding per domain goes by the web address Bulwark is opened on, not the sender's domain.
expect(screen.getByText('company name from Branding, for the web address Bulwark is opened on')).toBeInTheDocument();
});
it('sets a disclaimer for a scope, with a preview', async () => {
@@ -30,7 +30,7 @@ const PLACEHOLDER_HELP: Record<SignaturePlaceholder, string> = {
name: 'name of the address the mail is sent from',
email: 'that address',
identity: 'name and address, as in From',
company: 'company name from Branding (per domain)',
company: 'company name from Branding, for the web address Bulwark is opened on',
domain: 'domain of the address',
title: 'job title the user fills in',
department: 'department the user fills in',