mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-01 17:03:15 +00:00
fix(client): work through the findings from the coverage pass
214 items came out of writing the tests. Real defects are corrected, dead code is removed rather than covered, and the tests that pinned the old behaviour move with them. Also drops two agent coverage scratch files that slipped into the coverage PR and adds the ignore rule that keeps them out.
This commit is contained in:
@@ -1242,6 +1242,21 @@ describe('AdminPluginsPanel — Discover cards and the detail modal', () => {
|
||||
expect(screen.queryByText('Setup')).not.toBeInTheDocument()
|
||||
})
|
||||
|
||||
it('FE-COMP-PLUGINS-PANEL-043b: a manifest that omits the lists still renders the modal', async () => {
|
||||
const detail = manifestDetail({ size: 0 })
|
||||
delete (detail.manifest as Record<string, unknown>).egress
|
||||
delete (detail.manifest as Record<string, unknown>).settings
|
||||
delete (detail.manifest as Record<string, unknown>).permissions
|
||||
discoverWith({}, detail)
|
||||
render(<AdminPluginsPanel />)
|
||||
await clickDiscover()
|
||||
fireEvent.click(await screen.findByText('Gotify'))
|
||||
|
||||
expect(await screen.findByText('Needs no special access.')).toBeInTheDocument()
|
||||
expect(screen.queryByText('Connects to')).not.toBeInTheDocument()
|
||||
expect(screen.queryByText('Setup')).not.toBeInTheDocument()
|
||||
})
|
||||
|
||||
it('FE-COMP-PLUGINS-PANEL-044: an incompatible entry explains the blocked button in the modal body', async () => {
|
||||
discoverWith({ compatible: false, latestCompatible: null, trek: '>=4.0.0', hostVersion: '3.3.0' })
|
||||
render(<AdminPluginsPanel />)
|
||||
|
||||
Reference in New Issue
Block a user