From 9b8de8a12ead14a31de18ab6f8ff4e6c392e4b0a Mon Sep 17 00:00:00 2001 From: David Luzar <5153846+dwelle@users.noreply.github.com> Date: Tue, 31 Oct 2023 12:05:08 +0100 Subject: [PATCH] test: disable flaky test (#7213) --- src/element/textWysiwyg.test.tsx | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/element/textWysiwyg.test.tsx b/src/element/textWysiwyg.test.tsx index 45d4b83d..13906d4a 100644 --- a/src/element/textWysiwyg.test.tsx +++ b/src/element/textWysiwyg.test.tsx @@ -223,6 +223,20 @@ describe("textWysiwyg", () => { expect(h.state.editingElement?.id).toBe(text.id); expect(h.elements.length).toBe(1); }); + + // FIXME too flaky. No one knows why. + it.skip("should bump the version of a labeled arrow when the label is updated", async () => { + const arrow = UI.createElement("arrow", { + width: 300, + height: 0, + }); + await UI.editText(arrow, "Hello"); + const { version } = arrow; + + await UI.editText(arrow, "Hello\nworld!"); + + expect(arrow.version).toEqual(version + 1); + }); }); describe("Test container-unbound text", () => { @@ -1506,18 +1520,4 @@ describe("textWysiwyg", () => { expect(text.text).toBe("Excalidraw"); }); }); - - it("should bump the version of a labeled arrow when the label is updated", async () => { - await render(); - const arrow = UI.createElement("arrow", { - width: 300, - height: 0, - }); - await UI.editText(arrow, "Hello"); - const { version } = arrow; - - await UI.editText(arrow, "Hello\nworld!"); - - expect(arrow.version).toEqual(version + 1); - }); });