fix(notifications): link admin emails to admin notification settings

This commit is contained in:
Luffy
2026-11-02 17:46:59 +08:00
committed by Maurice
parent 64847e906e
commit 6bcc49fc6f
5 changed files with 62 additions and 3 deletions
+5
View File
@@ -880,6 +880,11 @@ describe('useAdmin', () => {
expect(result.current.activeTab).toBe('audit');
});
it('opens the notifications tab from the admin email manage link', async () => {
const { result } = await mountAdmin('/admin?tab=notifications');
expect(result.current.activeTab).toBe('notifications');
});
/*
* A tab id with no panel behind it — a typo, or a link from an install that
* has tabs this one does not — used to open the page on an empty content