Skip to content

Commit 361e020

Browse files
committed
fix action cell and useWorkspaceRowActions test
1 parent ed884c9 commit 361e020

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

workspaces/frontend/src/app/components/WorkspaceTable.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ const WorkspaceTable = React.forwardRef<WorkspaceTableRef, WorkspaceTableProps>(
582582

583583
if (columnKey === 'actions') {
584584
return (
585-
<Td key="actions" isActionCell data-testid="action-column">
585+
<Td key="actions" data-testid="action-column">
586586
<ActionsColumn
587587
items={rowActions(workspace).map((action) => ({
588588
...action,

workspaces/frontend/src/app/hooks/__tests__/useWorkspaceRowActions.spec.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ describe('useWorkspaceRowActions', () => {
2727
requestStartAction: (args: RequestActionArgs) => void;
2828
requestRestartAction: (args: RequestActionArgs) => void;
2929
requestStopAction: (args: RequestActionArgs) => void;
30+
isDrawerExpanded: boolean;
3031
};
3132

3233
const contextValue: WorkspaceActionsContextLike = {
@@ -36,6 +37,7 @@ describe('useWorkspaceRowActions', () => {
3637
requestStartAction: jest.fn(),
3738
requestRestartAction: jest.fn(),
3839
requestStopAction: jest.fn(),
40+
isDrawerExpanded: false,
3941
};
4042

4143
const wrapper: React.FC<React.PropsWithChildren> = ({ children }) => (

0 commit comments

Comments
 (0)