Docs: user and administrator guides, screenshots; fix Generate and Leases layout
Generate credentials no longer shows a raw JSON box for roles that take no input, and lease rows get proper button styling. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
3fa32b5076
commit
4d0740dd97
21 files changed
+389
-5
No files matched your search
@@ -43,6 +43,12 @@ test('shows issued credentials once, and keeps them out of every cache', async (
|
||||
expect(qc.getMutationCache().getAll()).toHaveLength(0)
|
||||
})
|
||||
|
||||
test('a role that takes no input offers just Generate, with no raw JSON box', () => {
|
||||
setup('database')
|
||||
expect(screen.getByRole('form', { name: 'Generate credentials for ro' })).toBeInTheDocument()
|
||||
expect(screen.queryByLabelText(/JSON/)).not.toBeInTheDocument()
|
||||
})
|
||||
|
||||
test('revokes the lease on request', async () => {
|
||||
vi.mocked(creds.generateCreds).mockResolvedValue(issued)
|
||||
vi.mocked(leases.revokeLease).mockResolvedValue()
|
||||
|
||||
Reference in new issue
Block a user