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 platform setup assertions independent of decorative icon text

pulse-triage[bot]4ac1d7ba157a
diff --git a/frontend-modern/src/components/shared/__tests__/MobileNavBar.test.tsx b/frontend-modern/src/components/shared/__tests__/MobileNavBar.test.tsx
index 4838238626..b67988b238 100644
--- a/frontend-modern/src/components/shared/__tests__/MobileNavBar.test.tsx
+++ b/frontend-modern/src/components/shared/__tests__/MobileNavBar.test.tsx
@@ -243,9 +243,9 @@ describe('MobileNavBar', () => {
fireEvent.click(within(nav).getByRole('button', { name: 'Switch platform, current Proxmox' }));
const menu = await screen.findByRole('menu', { name: 'Switch platform' });
- expect(within(menu).getByRole('menuitem', { name: /Machines/ })).toHaveTextContent(
- 'Machines Setup',
- );
+ const machinesItem = within(menu).getByRole('menuitem', { name: 'Machines Setup' });
+ expect(machinesItem.firstElementChild?.textContent).toBe('Machines ');
+ expect(machinesItem.lastElementChild).toHaveTextContent(/^Setup$/);
fireEvent.click(within(nav).getByRole('button', { name: 'More navigation' }));
const utilityMenu = await screen.findByRole('menu', {
name: 'More navigation destinations',