Skip to content

Commit 0cdb2a1

Browse files
committed
🪛
1 parent 777fee8 commit 0cdb2a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

site/src/pages/WorkspacePage/WorkspaceScheduleControls.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ test("add 3 hours to deadline", async () => {
8282
await screen.findByText(
8383
"Workspace shutdown time has been successfully updated.",
8484
);
85-
expect(screen.getByText("Stop in 6 hours")).toBeInTheDocument();
85+
expect(await screen.findByText("Stop in 6 hours")).toBeInTheDocument();
8686

8787
// Mocks are used here because the 'usedDeadline' is a dayjs object, which
8888
// can't be directly compared.
@@ -110,7 +110,7 @@ test("remove 2 hours to deadline", async () => {
110110
await screen.findByText(
111111
"Workspace shutdown time has been successfully updated.",
112112
);
113-
expect(screen.getByText("Stop in an hour")).toBeInTheDocument();
113+
expect(await screen.findByText("Stop in an hour")).toBeInTheDocument();
114114

115115
// Mocks are used here because the 'usedDeadline' is a dayjs object, which
116116
// can't be directly compared.

0 commit comments

Comments
 (0)