Skip to content

Commit 8e6b33c

Browse files
refactor(frontend): modified tests and stories from refactor
1 parent cbfc8ad commit 8e6b33c

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

frontend/relay-workflows-lib/stories/components/WorkflowsContent.stories.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,5 @@ export const Default: Story = {
6868
onPageChange: () => {},
6969
onLimitChange: () => {},
7070
updatePageInfo: () => {},
71-
setIsPaginated: () => {},
7271
},
7372
};

frontend/relay-workflows-lib/tests/components/BaseWorkflowRelay.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ describe("BaseWorkflowRelay", () => {
7878
expect(screen.queryByText("even")).not.toBeVisible();
7979

8080
await user.click(accordionButton);
81-
8281
expect(accordionButton).toHaveAttribute("aria-expanded", "true");
83-
expect(screen.getByText("even")).toBeVisible();
82+
expect(screen.getByText("React Flow")).toBeVisible();
83+
expect(screen.getByText("even")).toBeInTheDocument();
8484
});
8585
});

frontend/relay-workflows-lib/tests/components/TasksFlow.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ describe("TasksFlow Component", () => {
112112
nodes: mockLayoutedNodes,
113113
edges: mockLayoutedEdges,
114114
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
115-
nodeTypes: expect.objectContaining({ custom: expect.any(Function) }),
115+
nodeTypes: { custom: expect.any(Function) },
116116
nodesDraggable: false,
117117
nodesConnectable: false,
118118
elementsSelectable: true,
@@ -121,7 +121,7 @@ describe("TasksFlow Component", () => {
121121
zoomOnDoubleClick: false,
122122
panOnDrag: true,
123123
preventScrolling: false,
124-
fitView: false,
124+
fitView: true,
125125
style: { width: "100%", overflow: "auto", height: "100%" },
126126
}),
127127
{},

0 commit comments

Comments
 (0)