mirror of
https://github.com/coder/coder.git
synced 2026-06-03 21:18:24 +00:00
fix(site): workaround: reload page every 3sec (#9387)
This commit is contained in:
@@ -38,12 +38,18 @@ export const createWorkspace = async (
|
||||
await page.getByTestId("form-submit").click()
|
||||
|
||||
await expect(page).toHaveURL("/@admin/" + name)
|
||||
|
||||
// FIXME: workaround for https://github.com/coder/coder/issues/8566
|
||||
const reloadTimer = setInterval(async () => {
|
||||
await page.reload()
|
||||
}, 3000)
|
||||
await page.waitForSelector(
|
||||
"span[data-testid='build-status'] >> text=Running",
|
||||
{
|
||||
state: "visible",
|
||||
},
|
||||
)
|
||||
clearInterval(reloadTimer)
|
||||
return name
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user