mirror of
https://git.quad4.io/RNS-Things/MeshChatX.git
synced 2026-03-31 03:55:43 +00:00
- Introduced new test files for BlockedPage, DropDownMenu, and Interface components to ensure proper rendering and functionality. - Enhanced existing tests for ConfirmDialog, MessagesSidebar, and NotificationBell, improving coverage and verifying UI behavior. - Added performance tests for LoadTimePerformance to measure loading times for large datasets in the PropagationNodesPage and MessagesSidebar. - Removed the deprecated InterfacesPage test file to streamline the test suite.
20 lines
735 B
JavaScript
20 lines
735 B
JavaScript
import { mount } from "@vue/test-utils";
|
|
import { describe, it, expect } from "vitest";
|
|
import FormLabel from "../../meshchatx/src/frontend/components/forms/FormLabel.vue";
|
|
|
|
describe("FormLabel UI", () => {
|
|
it("renders label with slot content", () => {
|
|
const wrapper = mount(FormLabel, {
|
|
slots: { default: "Username" },
|
|
});
|
|
expect(wrapper.find("label").exists()).toBe(true);
|
|
expect(wrapper.text()).toContain("Username");
|
|
});
|
|
|
|
it("has label classes", () => {
|
|
const wrapper = mount(FormLabel, { slots: { default: "X" } });
|
|
expect(wrapper.find("label").classes()).toContain("block");
|
|
expect(wrapper.find("label").classes()).toContain("text-sm");
|
|
});
|
|
});
|