diff --git a/tests/unit/PodList.test.tsx b/tests/unit/PodList.test.tsx index 8088b4a8..14d4fec5 100644 --- a/tests/unit/PodList.test.tsx +++ b/tests/unit/PodList.test.tsx @@ -13,13 +13,13 @@ vi.mock("@/components/Kubernetes/LogStreamPanel", () => ({
), })); -vi.mock("@/components/Kubernetes/ShellExecModal", () => ({ - ShellExecModal: ({ namespace }: { namespace: string }) => ( +vi.mock("@/components/Kubernetes/InteractiveShellModal", () => ({ + InteractiveShellModal: ({ namespace }: { namespace: string }) => (
), })); -vi.mock("@/components/Kubernetes/AttachModal", () => ({ - AttachModal: ({ namespace }: { namespace: string }) => ( +vi.mock("@/components/Kubernetes/InteractiveAttachModal", () => ({ + InteractiveAttachModal: ({ namespace }: { namespace: string }) => (
), })); diff --git a/tests/unit/criticalUIFixes.test.tsx b/tests/unit/criticalUIFixes.test.tsx index 7249dbad..55fe5851 100644 --- a/tests/unit/criticalUIFixes.test.tsx +++ b/tests/unit/criticalUIFixes.test.tsx @@ -6,7 +6,6 @@ * 4. YAML editor loading race condition */ -import React from "react"; import { describe, it, expect, vi, beforeEach } from "vitest"; import { render, screen, fireEvent, waitFor } from "@testing-library/react"; import { invoke } from "@tauri-apps/api/core"; @@ -219,7 +218,6 @@ describe("Dark mode – text visibility", () => { const root = document.documentElement; root.classList.add("dark"); - const computedStyle = window.getComputedStyle(root); expect(root.classList.contains("dark")).toBe(true); root.classList.remove("dark");