Skip to content

fix: display explicit 'retry' button(s) when a workspace fails #10720

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 16 commits into from
Nov 22, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: update renderWorkspacePage to accept parameters
  • Loading branch information
Parkreiner committed Nov 15, 2023
commit 404e4c77544ce1bec913f7ffcabbcf89d9c65e7b
8 changes: 5 additions & 3 deletions site/src/pages/WorkspacePage/WorkspacePage.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import { server } from "testHelpers/server";
import { WorkspacePage } from "./WorkspacePage";

// It renders the workspace page and waits for it be loaded
const renderWorkspacePage = async () => {
const renderWorkspacePage = async (mockWorkspace = MockWorkspace) => {
jest.spyOn(api, "getTemplate").mockResolvedValueOnce(MockTemplate);
jest.spyOn(api, "getTemplateVersionRichParameters").mockResolvedValueOnce([]);
jest
Expand All @@ -34,11 +34,13 @@ const renderWorkspacePage = async () => {
options.onDone && options.onDone();
return new WebSocket("");
});

renderWithAuth(<WorkspacePage />, {
route: `/@${MockWorkspace.owner_name}/${MockWorkspace.name}`,
route: `/@${mockWorkspace.owner_name}/${mockWorkspace.name}`,
path: "/:username/:workspace",
});
await screen.findByText(MockWorkspace.name);

await screen.findByText(mockWorkspace.name);
};

/**
Expand Down