Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

Keep containing frontend qualification fixtures consistently formatted

pulse-triage[bot]831d9c75fd2f
diff --git a/frontend-modern/src/components/shared/InlineNotice.test.tsx b/frontend-modern/src/components/shared/InlineNotice.test.tsx
index 10191d1c24..305e6aaf8e 100644
--- a/frontend-modern/src/components/shared/InlineNotice.test.tsx
+++ b/frontend-modern/src/components/shared/InlineNotice.test.tsx
@@ -88,7 +88,11 @@ describe('InlineNotice', () => {
const onAction = vi.fn();
render(() => (
<>
- <InlineNotice tone={tone} actionHref="/docs/VM_DISK_MONITORING" actionLabel="Read guidance">
+ <InlineNotice
+ tone={tone}
+ actionHref="/docs/VM_DISK_MONITORING"
+ actionLabel="Read guidance"
+ >
Reading is deferred.
</InlineNotice>
<InlineNotice tone={tone} layout="banner" actionLabel="Retry" actionOnClick={onAction}>
@@ -104,7 +108,10 @@ describe('InlineNotice', () => {
// drawers and the RBAC recovery consumers in the browser fixture.
expect(action).toHaveClass('min-h-11', 'min-w-11', 'sm:min-h-0', 'sm:min-w-0');
expect(action).toHaveClass('underline', 'focus-visible:outline-2');
- expect(action).toHaveClass('focus-visible:outline-offset-2', 'focus-visible:outline-current');
+ expect(action).toHaveClass(
+ 'focus-visible:outline-offset-2',
+ 'focus-visible:outline-current',
+ );
}
expect(link).toHaveAttribute('href', '/docs/VM_DISK_MONITORING');
expect(button).toHaveAttribute('type', 'button');
diff --git a/frontend-modern/src/features/docs/__tests__/pbsMissingGuide.test.ts b/frontend-modern/src/features/docs/__tests__/pbsMissingGuide.test.ts
index 584c360283..542e96c03c 100644
--- a/frontend-modern/src/features/docs/__tests__/pbsMissingGuide.test.ts
+++ b/frontend-modern/src/features/docs/__tests__/pbsMissingGuide.test.ts
@@ -21,8 +21,7 @@ function section(): HTMLElement {
return element;
}
-const prose = (element: HTMLElement) =>
- (element.textContent ?? '').replace(/\s+/g, ' ').trim();
+const prose = (element: HTMLElement) => (element.textContent ?? '').replace(/\s+/g, ' ').trim();
describe('missing API-only PBS help', () => {
it('does not mistake connection polling health or an agent view for API recovery', () => {
@@ -37,7 +36,9 @@ describe('missing API-only PBS help', () => {
const element = section();
const rows = element.querySelectorAll('tbody tr');
expect(rows).toHaveLength(3);
- expect(prose(rows[0] as HTMLElement)).toContain('The PBS VM/LXC in Overview is a different resource');
+ expect(prose(rows[0] as HTMLElement)).toContain(
+ 'The PBS VM/LXC in Overview is a different resource',
+ );
expect(prose(rows[0] as HTMLElement)).toContain('If Proxmox navigation is absent too');
expect(prose(rows[1] as HTMLElement)).toContain('PVE passthrough backups do not establish');
expect(prose(rows[2] as HTMLElement)).toContain('not the same as a missing server');
@@ -51,14 +52,18 @@ describe('missing API-only PBS help', () => {
expect(text).toContain('Use consistent aliases for private server names');
expect(text).toContain('Existing error text or screenshots are enough to start');
expect(text).toContain('do not run Diagnostics, enable Debug or collect a full response');
- expect(text).toContain('Do not delete and re-add the connection, replace tokens, install an agent');
+ expect(text).toContain(
+ 'Do not delete and re-add the connection, replace tokens, install an agent',
+ );
expect(text).toContain('Keep certificate verification and existing access restrictions intact');
});
it('links the existing troubleshooting entry and safety/history guides to real headings', () => {
const entry = render('TROUBLESHOOTING').querySelector(`a[href="/docs/PBS#${fragment}"]`);
expect(entry).not.toBeNull();
- expect(prose(entry!.closest('li')!)).toContain('installing an agent does not prove API recovery');
+ expect(prose(entry!.closest('li')!)).toContain(
+ 'installing an agent does not prove API recovery',
+ );
for (const link of section().querySelectorAll('a[href]')) {
const href = link.getAttribute('href')!;
const target = /^#(.+)$/.exec(href);