Skip to content

feat: add loaders to ssh and terminal buttons #3820

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 3 commits into from
Sep 1, 2022
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
fix test
  • Loading branch information
f0ssel committed Sep 1, 2022
commit 259c3966161c7f1ef93a55a1bfa3e0dbfde8a462
9 changes: 7 additions & 2 deletions site/src/pages/WorkspacePage/WorkspacePage.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import {
MockWorkspace,
MockWorkspaceAgent,
MockWorkspaceAgentDisconnected,
MockWorkspaceAgentConnecting,
MockWorkspaceBuild,
renderWithAuth,
} from "../../testHelpers/renderHelpers"
Expand Down Expand Up @@ -205,10 +206,14 @@ describe("WorkspacePage", () => {
DisplayAgentStatusLanguage[MockWorkspaceAgent.status],
)
expect(agent1Status.length).toEqual(4)
const agent2Status = await screen.findAllByText(
const agentDisconnected = await screen.findAllByText(
DisplayAgentStatusLanguage[MockWorkspaceAgentDisconnected.status],
)
expect(agent2Status.length).toEqual(2)
expect(agentDisconnected.length).toEqual(1)
const agentConnecting = await screen.findAllByText(
DisplayAgentStatusLanguage[MockWorkspaceAgentConnecting.status],
)
expect(agentConnecting.length).toEqual(1)
expect(getTemplateMock).toBeCalled()
})
})
Expand Down