fix: unit test

This commit is contained in:
kemal committed 2026-10-01 11:55:40 +01:00
1 parent 8dbc22239f
commit 949a80bcf8
1 file changed
+2 -2
@@ -227,11 +227,11 @@ describe('ViewTokenSheet', () => {
expect(screen.getByText('Backups')).toBeInTheDocument()
// The All/Read/Read-write toggle sits next to the "Capabilities" title, not a text filter.
fireEvent.click(screen.getByRole('button', { name: 'Read-write' }))
fireEvent.click(screen.getByRole('radio', { name: 'Read-write' }))
expect(screen.getByText('Database')).toBeInTheDocument()
expect(screen.queryByText('Backups')).toBeNull()
fireEvent.click(screen.getByRole('button', { name: 'Read' }))
fireEvent.click(screen.getByRole('radio', { name: 'Read' }))
expect(screen.queryByText('Database')).toBeNull()
expect(screen.getByText('Backups')).toBeInTheDocument()
})