Feat/ssa role #1

Merged
admin merged 3 commits from feat/ssa-role into main 2026-11-06 21:58:38 +08:00
Showing only changes of commit 4ec37bd078 - Show all commits
+6 -1
View File
@@ -49,8 +49,13 @@ describe('AppShell', () => {
expect(document.activeElement?.getAttribute('name')).toBe('q') expect(document.activeElement?.getAttribute('name')).toBe('q')
}) })
it('hides the search box for roles without an incident list', () => { it('targets the site incident list for the SSA role', () => {
const { container } = render(<AppShell role="ssa" userName="Ada"><span /></AppShell>) const { container } = render(<AppShell role="ssa" userName="Ada"><span /></AppShell>)
expect(container.querySelector('header form')!.getAttribute('action')).toBe('/ssa/incidents')
})
it('hides the search box for roles without an incident list', () => {
const { container } = render(<AppShell role="management" userName="Ada"><span /></AppShell>)
expect(container.querySelector('header form')).toBeNull() expect(container.querySelector('header form')).toBeNull()
}) })