feature/freelens-parity-complete #87

Merged
sarman merged 16 commits from feature/freelens-parity-complete into master 2026-06-10 01:06:11 +00:00
2 changed files with 4 additions and 6 deletions
Showing only changes of commit 2a8183daf2 - Show all commits

View File

@ -13,13 +13,13 @@ vi.mock("@/components/Kubernetes/LogStreamPanel", () => ({
<div data-testid="logs-modal" data-namespace={namespace} />
),
}));
vi.mock("@/components/Kubernetes/ShellExecModal", () => ({
ShellExecModal: ({ namespace }: { namespace: string }) => (
vi.mock("@/components/Kubernetes/InteractiveShellModal", () => ({
InteractiveShellModal: ({ namespace }: { namespace: string }) => (
<div data-testid="shell-modal" data-namespace={namespace} />
),
}));
vi.mock("@/components/Kubernetes/AttachModal", () => ({
AttachModal: ({ namespace }: { namespace: string }) => (
vi.mock("@/components/Kubernetes/InteractiveAttachModal", () => ({
InteractiveAttachModal: ({ namespace }: { namespace: string }) => (
<div data-testid="attach-modal" data-namespace={namespace} />
),
}));

View File

@ -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");