From 816d99e46cdb728456adc1e3382ce9ef371dff57 Mon Sep 17 00:00:00 2001 From: Jeremy Ruppel Date: Fri, 27 Feb 2026 19:16:09 -0500 Subject: [PATCH] flake: increase test timeout for TemplateVersionEditorPage tests (#22412) TemplateVersionEditorPage tests have been flaking since I ported them to vitest in 99a4ecd. Turns out our test timeout on jest is 20s (presumably for these sorts of page-level journey tests). I kinda like the current 5s timeout as it forces us to write speedy tests, but I think in this case it's unavoidable and makes sense to lengthen the timeout just for these tests. Hopefully fixes coder/internal#1369 You may want the whitespaceless diff here: https://github.com/coder/coder/pull/22412/changes?w=1 --- .../TemplateVersionEditorPage.test.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/src/pages/TemplateVersionEditorPage/TemplateVersionEditorPage.test.tsx b/site/src/pages/TemplateVersionEditorPage/TemplateVersionEditorPage.test.tsx index 1bed974d2e..4c7a594f29 100644 --- a/site/src/pages/TemplateVersionEditorPage/TemplateVersionEditorPage.test.tsx +++ b/site/src/pages/TemplateVersionEditorPage/TemplateVersionEditorPage.test.tsx @@ -156,7 +156,7 @@ test("Use custom name, message and set it as active when publishing", async () = await waitFor(() => { expect(screen.queryByTestId("dialog")).not.toBeInTheDocument(); }); -}); +}, 20_000); test("Do not mark as active if promote is not checked", async () => { const user = userEvent.setup();