Skip to content

Commit 9b72c03

Browse files
committed
use helper
1 parent 9c4b5b4 commit 9b72c03

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -312,11 +312,7 @@ describe("WorkspacePage", () => {
312312
),
313313
)
314314

315-
renderWithAuth(<WorkspacePage />, {
316-
route: `/@${MockWorkspace.owner_name}/${MockWorkspace.name}`,
317-
path: "/@:username/:workspace",
318-
})
319-
315+
await renderWorkspacePage()
320316
const agent1Names = await screen.findAllByText(MockWorkspaceAgent.name)
321317
expect(agent1Names.length).toEqual(1)
322318
const agent2Names = await screen.findAllByText(

0 commit comments

Comments
 (0)