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.

755 B
Raw Blame
import { render, screen } from '@solidjs/testing-library';
import { afterEach, describe, expect, it } from 'vitest';
import { DEFAULT_LOCALE, setActiveLocale } from '@/i18n';
import RuntimeHome from '@/pages/RuntimeHome';

describe('RuntimeHome', () => {
  afterEach(() => {
    setActiveLocale(DEFAULT_LOCALE);
  });

  it('defers workspace routing to the authenticated app shell', () => {
    render(() => <RuntimeHome />);

    expect(screen.getByText('Opening workspace...')).toBeInTheDocument();
  });

  it('renders the authenticated workspace handoff through the active locale', () => {
    setActiveLocale('es');

    render(() => <RuntimeHome />);

    expect(screen.getByText('Abriendo el espacio de trabajo...')).toBeInTheDocument();
  });
});