mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-18 21:16:47 +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:
@@ -490,6 +490,21 @@ describe('MAdminPluginsPanel — the registry detail sheet', () => {
|
||||
expect(screen.queryByText('Connects to')).not.toBeInTheDocument();
|
||||
});
|
||||
|
||||
it('FE-MOB-PLUGP-092: the manifest capabilities are chipped before the install decision', async () => {
|
||||
await openDetail({
|
||||
...registryEntry(),
|
||||
size: null,
|
||||
publishedAt: null,
|
||||
manifest: {
|
||||
...manifest,
|
||||
capabilities: { widget: { slot: 'hero' }, tripPage: { replaces: ['places'] } },
|
||||
},
|
||||
});
|
||||
|
||||
expect(await screen.findByText('Replaces planner tabs')).toBeInTheDocument();
|
||||
expect(screen.getByText('Boarding-pass widget')).toBeInTheDocument();
|
||||
});
|
||||
|
||||
it('FE-MOB-PLUGP-030: a failed detail fetch is reported inside the sheet', async () => {
|
||||
mockPanel([], [registryEntry()]);
|
||||
server.use(http.get('*/api/admin/plugins/registry/trek-gotify', () =>
|
||||
|
||||
Reference in New Issue
Block a user