Skip to content

Commit a9c07b4

Browse files
committed
test(web): cover workspace route gate shells
1 parent 3bfb8a0 commit a9c07b4

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

packages/web/src/features/workspace/views/shared/workspace-route-gate.test.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ describe("WorkspaceRouteGate", () => {
2525
</Provider>
2626
);
2727

28+
expect(screen.getByTestId("workspace-resolving-shell")).toBeInTheDocument();
29+
expect(screen.getByText("Workspace")).toBeInTheDocument();
2830
expect(screen.getByText("Loading workspaces")).toBeInTheDocument();
2931
expect(screen.queryByText("ready")).not.toBeInTheDocument();
3032
});
@@ -43,6 +45,8 @@ describe("WorkspaceRouteGate", () => {
4345
</Provider>
4446
);
4547

48+
expect(document.querySelector(".workspace-resolving-shell")).not.toBeNull();
49+
expect(screen.getByText("Workspace")).toBeInTheDocument();
4650
expect(screen.getByText("Failed to load workspaces")).toBeInTheDocument();
4751
expect(screen.getByText("Failed to fetch workspace list")).toBeInTheDocument();
4852
expect(screen.queryByText("ready")).not.toBeInTheDocument();

0 commit comments

Comments
 (0)