test: remove or fix brittle tests

This commit is contained in:
2026-02-08 15:17:17 +05:00
parent 81771970c7
commit b09e3aeab4
23 changed files with 31 additions and 553 deletions
+2 -16
View File
@@ -7,25 +7,11 @@ afterEach(() => {
});
describe("TextConfig.svelte", () => {
it("should render with card title", () => {
it("should render without crashing", () => {
render(TextConfig);
expect(screen.getByText("Настройки текста")).toBeInTheDocument();
});
it("should render all settings controls", () => {
render(TextConfig);
expect(screen.getByText("Размер")).toBeInTheDocument();
expect(screen.getByText("Шрифт")).toBeInTheDocument();
expect(screen.getByText("Цвет")).toBeInTheDocument();
expect(screen.getByText("Выравнивание")).toBeInTheDocument();
expect(screen.getByText("Отступы")).toBeInTheDocument();
expect(screen.getByText("Смещение")).toBeInTheDocument();
});
it("should have correct structure with SettingsGrid", () => {
render(TextConfig);
const settingsGrid = document.querySelector(".settings-grid");
expect(settingsGrid).toBeInTheDocument();
});
});