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
6 changes: 0 additions & 6 deletions config/quality/vitest-exclusions.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@
"_comment": "Inventário dos arquivos de teste excluídos do Vitest. Toda entrada precisa de uma issue de rastreio ABERTA. Gate: npm run check:vitest-exclusions. Contexto: #13204.",
"_measured": "2026-09-10 — cada arquivo rodado isoladamente com as exclusões removidas",
"excluded": [
{
"file": "tests/unit/ui/request-logger-autorefresh-visibility-3972.test.tsx",
"issue": "#13204",
"measured": "2026-09-10",
"status": "Tests 1 failed | 5 passed (6)"
},
{
"file": "tests/unit/ui/logs-page-detail-modal-reopen-on-close.test.tsx",
"issue": "#13204",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";

vi.mock("next-intl", () => ({
useTranslations: () => (key: string) => key,
useLocale: () => "en",
}));

vi.mock("next/navigation", () => ({
Expand Down Expand Up @@ -67,6 +68,9 @@ function deferredResponse() {
}

beforeEach(() => {
(
globalThis as typeof globalThis & { IS_REACT_ACT_ENVIRONMENT?: boolean }
).IS_REACT_ACT_ENVIRONMENT = true;
callLogsRequests = 0;
if (!globalThis.localStorage) {
const store = new Map<string, string>();
Expand Down Expand Up @@ -163,14 +167,14 @@ describe("RequestLoggerV2 detail modal lifecycle", () => {
await act(async () => {
row?.dispatchEvent(new MouseEvent("click", { bubbles: true }));
});
expect(container.querySelector('[aria-label="Request log detail"]')).not.toBeNull();
expect(container.querySelector('[aria-label="ariaLabel"]')).not.toBeNull();

await act(async () => {
container
.querySelector<HTMLButtonElement>('[aria-label="Close detail modal"]')
.querySelector<HTMLButtonElement>('[aria-label="close"]')
?.dispatchEvent(new MouseEvent("click", { bubbles: true }));
});
expect(container.querySelector('[aria-label="Request log detail"]')).toBeNull();
expect(container.querySelector('[aria-label="ariaLabel"]')).toBeNull();

await act(async () => {
detail.resolve(
Expand All @@ -189,7 +193,7 @@ describe("RequestLoggerV2 detail modal lifecycle", () => {
await detail.promise;
});

expect(container.querySelector('[aria-label="Request log detail"]')).toBeNull();
expect(container.querySelector('[aria-label="ariaLabel"]')).toBeNull();
});
});

Expand Down
1 change: 0 additions & 1 deletion vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ export default defineConfig({
"tests/e2e/ecosystem.test.ts",
"tests/e2e/protocol-clients.test.ts",
// ── Pre-existing failures tracked by #8618 ───────────────────────────────
"tests/unit/ui/request-logger-autorefresh-visibility-3972.test.tsx", // #13204 — falha real; remover esta exclusão quando consertado
"tests/unit/ui/logs-page-detail-modal-reopen-on-close.test.tsx", // #13204 — falha real; remover esta exclusão quando consertado
"tests/unit/ui/agent-card.test.tsx", // #13204 — falha real; remover esta exclusão quando consertado
"src/app/(dashboard)/dashboard/cache/__tests__/CacheTrends.test.tsx", // #13204 — falha real; remover esta exclusão quando consertado
Expand Down
Loading