chore(site): Make FE tests faster (#6543)

This commit is contained in:
Bruno Quaresma
2023-03-13 13:35:09 -03:00
committed by GitHub
parent 9b2abf0952
commit 813b54942f
19 changed files with 863 additions and 834 deletions
+4
View File
@@ -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))
}),
]
+1 -1
View File
@@ -87,6 +87,6 @@ export function renderWithAuth(
}
export const waitForLoaderToBeRemoved = (): Promise<void> =>
waitForElementToBeRemoved(() => screen.getByRole("progressbar"))
waitForElementToBeRemoved(() => screen.getByTestId("loader"))
export * from "./entities"