Skip to content

Commit 80425c3

Browse files
authored
fix(site): workaround: reload page every 3sec (#9387)
1 parent 35d0809 commit 80425c3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

site/e2e/helpers.ts

+6
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,18 @@ export const createWorkspace = async (
3838
await page.getByTestId("form-submit").click()
3939

4040
await expect(page).toHaveURL("/@admin/" + name)
41+
42+
// FIXME: workaround for https://github.com/coder/coder/issues/8566
43+
const reloadTimer = setInterval(async () => {
44+
await page.reload()
45+
}, 3000)
4146
await page.waitForSelector(
4247
"span[data-testid='build-status'] >> text=Running",
4348
{
4449
state: "visible",
4550
},
4651
)
52+
clearInterval(reloadTimer)
4753
return name
4854
}
4955

0 commit comments

Comments
 (0)