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
docs: clean up formatting for WorkspacePage.test comments
  • Loading branch information
Parkreiner committed Nov 15, 2023
commit d635ecdf02eb235c6cc586eba8e341a3d626d5c2
10 changes: 6 additions & 4 deletions site/src/pages/WorkspacePage/WorkspacePage.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,12 @@ const renderWorkspacePage = async () => {
};

/**
* Requests and responses related to workspace status are unrelated, so we can't test in the usual way.
* Instead, test that button clicks produce the correct requests and that responses produce the correct UI.
* We don't need to test the UI exhaustively because Storybook does that; just enough to prove that the
* workspaceStatus was calculated correctly.
* Requests and responses related to workspace status are unrelated, so we can't
* test in the usual way. Instead, test that button clicks produce the correct
* requests and that responses produce the correct UI.
*
* We don't need to test the UI exhaustively because Storybook does that; just
* enough to prove that the workspaceStatus was calculated correctly.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just reformatted the comment to properly fit an 80-character width

*/
const testButton = async (label: string, actionMock: jest.SpyInstance) => {
const user = userEvent.setup();
Expand Down