Repository navigation
flake: increase test timeout for TemplateVersionEditorPage tests - #22412
Conversation
DanielleMaywood
left a comment
There was a problem hiding this comment.
For what these tests are doing, it feels odd that we're exceeding 5 seconds. It would be good to know what is causing them to be so slow.
Either there is something wrong with the tests (at a glance they look fine?) or CI is just slow on the actions runners.
4c439a4 to
7c77f08
Compare
@DanielleMaywood very fair point– I'm going to scope this down to just the one test that's failing to hopefully fix this flake, but you're totally right it would be good to get to the bottom of this. From what I can tell from previous builds where this was written in jest (heh), it regularly takes upwards of 10s for the TemplateVersionsEditorPage tests to run. I'm pretty confident increasing the timeout is necessary to get the test to pass as-is, and probably will be for a few more of these page-level sort of tests. |
7c77f08 to
7b64e04
Compare
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