mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore(site): Make FE tests faster (#6543)
This commit is contained in:
@@ -307,4 +307,8 @@ export const handlers = [
|
||||
rest.get("/api/v2/appearance", (req, res, ctx) => {
|
||||
return res(ctx.status(200), ctx.json(M.MockAppearance))
|
||||
}),
|
||||
|
||||
rest.get("/api/v2/deployment/stats", (_, res, ctx) => {
|
||||
return res(ctx.status(200), ctx.json(M.MockDeploymentStats))
|
||||
}),
|
||||
]
|
||||
|
||||
@@ -87,6 +87,6 @@ export function renderWithAuth(
|
||||
}
|
||||
|
||||
export const waitForLoaderToBeRemoved = (): Promise<void> =>
|
||||
waitForElementToBeRemoved(() => screen.getByRole("progressbar"))
|
||||
waitForElementToBeRemoved(() => screen.getByTestId("loader"))
|
||||
|
||||
export * from "./entities"
|
||||
|
||||
Reference in New Issue
Block a user