chore: remove e2e workaround (#9393)

This commit is contained in:
Bruno Quaresma
2023-08-28 15:24:01 -03:00
committed by GitHub
parent d138ed7314
commit 2167fe16d6
-5
View File
@@ -39,17 +39,12 @@ export const createWorkspace = async (
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
}