Skip to content

feat(site): move history into sidebar #11413

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 11 commits into from
Jan 5, 2024
Prev Previous commit
Next Next commit
Fix tests
  • Loading branch information
BrunoQuaresma committed Jan 4, 2024
commit 0f56e299bed757596aaa920ab6b83b086b70047b
13 changes: 0 additions & 13 deletions site/src/pages/WorkspacePage/WorkspacePage.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import {
MockOutdatedWorkspace,
MockTemplateVersionParameter1,
MockTemplateVersionParameter2,
MockBuilds,
MockUser,
MockDeploymentConfig,
MockWorkspaceBuildDelete,
Expand Down Expand Up @@ -317,18 +316,6 @@ describe("WorkspacePage", () => {
});
});

it("shows the timeline build", async () => {
await renderWorkspacePage(MockWorkspace);
const table = await screen.findByTestId("builds-table");

// Wait for the results to be loaded
await waitFor(async () => {
const rows = table.querySelectorAll("tbody > tr");
// Added +1 because of the date row
expect(rows).toHaveLength(MockBuilds.length + 1);
});
});

it("restart the workspace with one time parameters when having the confirmation dialog", async () => {
window.localStorage.removeItem(`${MockUser.id}_ignoredWarnings`);
jest.spyOn(api, "getWorkspaceParameters").mockResolvedValue({
Expand Down