Skip to content

Commit be967dd

Browse files
committed
Fix lint and tests
1 parent c79952b commit be967dd

File tree

3 files changed

+8
-13
lines changed

3 files changed

+8
-13
lines changed

site/src/pages/WorkspacePage/WorkspaceTopbar.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,6 @@ import { WorkspaceActions } from "./WorkspaceActions/WorkspaceActions";
3030
import { WorkspaceNotifications } from "./WorkspaceNotifications/WorkspaceNotifications";
3131
import { WorkspaceScheduleControls } from "./WorkspaceScheduleControls";
3232

33-
export type WorkspaceError =
34-
| "getBuildsError"
35-
| "buildError"
36-
| "cancellationError";
37-
3833
export interface WorkspaceProps {
3934
isUpdating: boolean;
4035
isRestarting: boolean;

site/src/pages/WorkspacesPage/WorkspacesPage.test.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ describe("WorkspacesPage", () => {
6868
await user.click(getWorkspaceCheckbox(workspaces[0]));
6969
await user.click(getWorkspaceCheckbox(workspaces[1]));
7070

71-
await user.click(screen.getByRole("button", { name: /actions/i }));
71+
await user.click(screen.getByRole("button", { name: /bulk actions/i }));
7272
const deleteButton = await screen.findByText(/delete/i);
7373
await user.click(deleteButton);
7474

@@ -106,7 +106,7 @@ describe("WorkspacesPage", () => {
106106
await user.click(getWorkspaceCheckbox(workspace));
107107
}
108108

109-
await user.click(screen.getByRole("button", { name: /actions/i }));
109+
await user.click(screen.getByRole("button", { name: /bulk actions/i }));
110110
const updateButton = await screen.findByText(/update/i);
111111
await user.click(updateButton);
112112

@@ -145,7 +145,7 @@ describe("WorkspacesPage", () => {
145145
await user.click(getWorkspaceCheckbox(workspace));
146146
}
147147

148-
await user.click(screen.getByRole("button", { name: /actions/i }));
148+
await user.click(screen.getByRole("button", { name: /bulk actions/i }));
149149
const updateButton = await screen.findByText(/update/i);
150150
await user.click(updateButton);
151151

@@ -183,7 +183,7 @@ describe("WorkspacesPage", () => {
183183
await user.click(getWorkspaceCheckbox(workspace));
184184
}
185185

186-
await user.click(screen.getByRole("button", { name: /actions/i }));
186+
await user.click(screen.getByRole("button", { name: /bulk actions/i }));
187187
const updateButton = await screen.findByText(/update/i);
188188
await user.click(updateButton);
189189

@@ -223,7 +223,7 @@ describe("WorkspacesPage", () => {
223223
await user.click(getWorkspaceCheckbox(workspace));
224224
}
225225

226-
await user.click(screen.getByRole("button", { name: /actions/i }));
226+
await user.click(screen.getByRole("button", { name: /bulk actions/i }));
227227
const updateButton = await screen.findByText(/update/i);
228228
await user.click(updateButton);
229229

@@ -263,7 +263,7 @@ describe("WorkspacesPage", () => {
263263

264264
await user.click(getWorkspaceCheckbox(workspaces[0]));
265265
await user.click(getWorkspaceCheckbox(workspaces[1]));
266-
await user.click(screen.getByRole("button", { name: /actions/i }));
266+
await user.click(screen.getByRole("button", { name: /bulk actions/i }));
267267
const stopButton = await screen.findByRole("menuitem", { name: /stop/i });
268268
await user.click(stopButton);
269269

@@ -290,7 +290,7 @@ describe("WorkspacesPage", () => {
290290

291291
await user.click(getWorkspaceCheckbox(workspaces[0]));
292292
await user.click(getWorkspaceCheckbox(workspaces[1]));
293-
await user.click(screen.getByRole("button", { name: /actions/i }));
293+
await user.click(screen.getByRole("button", { name: /bulk actions/i }));
294294
const startButton = await screen.findByRole("menuitem", { name: /start/i });
295295
await user.click(startButton);
296296

site/src/pages/WorkspacesPage/WorkspacesPageView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ export const WorkspacesPageView: FC<WorkspacesPageViewProps> = ({
143143
css={{ borderRadius: 9999, marginLeft: "auto" }}
144144
endIcon={<ChevronDownIcon className="size-4" />}
145145
>
146-
Actions
146+
Bulk actions
147147
</LoadingButton>
148148
</DropdownMenuTrigger>
149149
<DropdownMenuContent align="end">

0 commit comments

Comments
 (0)