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
@@ -21,31 +21,7 @@ describe("TextInlineEdit.svelte", () => {
expect(input).toHaveValue("Test text");
});
it("should render delete button", () => {
render(TextInlineEdit, {
props: {
id: 1,
text: "Test",
ondelete: () => {},
},
});
const deleteBtn = document.querySelector("button");
expect(deleteBtn).toBeInTheDocument();
});
it("should have text-item class", () => {
render(TextInlineEdit, {
props: {
id: 1,
text: "Test",
ondelete: () => {},
},
});
const textItem = document.querySelector(".text-item");
expect(textItem).toBeInTheDocument();
});
it("should render with empty text", () => {
render(TextInlineEdit, {