Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/lib/theme-presets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -800,7 +800,7 @@ export const THEME_PRESETS: ThemePreset[] = [
description: 'Rosa intenso e viciante',
h: 330,
s: 95,
l: 50, // Reduzido de 60 para 50 para contraste WCAG
l: 60, // zapp parity (gx-pink-addiction)
gh: 340,
sh: 300,
ss: 90,
Expand All @@ -826,7 +826,7 @@ export const THEME_PRESETS: ThemePreset[] = [
description: 'Rosa quartzo cristalino',
h: 345,
s: 75,
l: 54, // Reduzido de 68 para 54 para contraste WCAG
l: 68, // zapp parity (gx-rose-quartz)
gh: 355,
sh: 320,
ss: 60,
Expand All @@ -852,7 +852,7 @@ export const THEME_PRESETS: ThemePreset[] = [
description: 'Verde Matrix de hacker',
h: 127,
s: 65,
l: 40, // Reduzido de 46 para 40 para contraste WCAG
l: 46, // zapp parity (gx-hackerman)
gh: 135,
sh: 115,
ss: 60,
Expand All @@ -865,7 +865,7 @@ export const THEME_PRESETS: ThemePreset[] = [
description: 'Azul-petróleo do fundo do mar',
h: 182,
s: 90,
l: 35, // Reduzido de 42 para 35 para contraste WCAG com texto branco
l: 42, // zapp parity (gx-frutti-di-mare)
gh: 190,
sh: 200,
ss: 75,
Expand Down Expand Up @@ -896,7 +896,7 @@ export const THEME_PRESETS: ThemePreset[] = [
description: 'Verde RGB Razer Chroma',
h: 113,
s: 70,
l: 35, // Reduzido de 51 para 35 para contraste WCAG
l: 51, // zapp parity (gx-razer)
gh: 120,
sh: 100,
ss: 60,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {

const prefetchMock = vi.fn(() => Promise.resolve());

vi.mock("@/hooks/useNotifications", () => ({
vi.mock("@/hooks/ui/useNotifications", () => ({
useNotifications: () => ({
notifications: [],
unreadCount: 0,
Expand Down
8 changes: 5 additions & 3 deletions tests/pages/AdminTelemetriaPage.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -176,10 +176,12 @@ describe('AdminTelemetriaPage - Rendering', () => {
}, { timeout: 15000 });
});

it('renders inside MainLayout', async () => {
it('renders the page shell', async () => {
setupSupabaseMock([]);
render(<AdminTelemetriaPage />);
expect(screen.getByTestId('main-layout')).toBeInTheDocument();
// A página não envelopa MainLayout (o layout vem do roteamento); valida o
// marcador que a própria página renderiza.
expect(screen.getByTestId('page-title-telemetria')).toBeInTheDocument();
});

it('renders all 4 stat cards', async () => {
Expand Down Expand Up @@ -407,7 +409,7 @@ describe('AdminTelemetriaPage - Table Display', () => {
await waitFor(() => {
expect(screen.getByText('500 registros · auto-refresh 30s')).toBeInTheDocument();
});
});
}, 30000);
});

// ============================================
Expand Down
Loading