Skip to content

Commit 36191ce

Browse files
committed
specify more reasonable interval and timeout
1 parent cbc5172 commit 36191ce

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

site/src/pages/CreateWorkspacePage/CreateWorkspacePage.test.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,11 @@ describe("CreateWorkspacePage", () => {
213213
.spyOn(API, "getTemplateVersionExternalAuth")
214214
.mockResolvedValue([MockTemplateVersionExternalAuthGithubAuthenticated]);
215215

216-
await screen.findByText("Authenticated with GitHub");
216+
await screen.findByText(
217+
"Authenticated with GitHub",
218+
{},
219+
{ interval: 500, timeout: 5000 },
220+
);
217221

218222
const submitButton = screen.getByText(createWorkspaceText);
219223
await userEvent.click(submitButton);
@@ -229,7 +233,7 @@ describe("CreateWorkspacePage", () => {
229233
);
230234
});
231235

232-
it("external auth: errors if unauthenticated", async () => {
236+
it("external auth errors if unauthenticated", async () => {
233237
jest
234238
.spyOn(API, "getTemplateVersionExternalAuth")
235239
.mockResolvedValueOnce([MockTemplateVersionExternalAuthGithub]);

0 commit comments

Comments
 (0)