Skip to content

Commit 5e7958c

Browse files
committed
fix ui tests
1 parent ac9b0ad commit 5e7958c

File tree

1 file changed

+0
-62
lines changed

1 file changed

+0
-62
lines changed

autogpt_platform/frontend/src/components/agptui/AgentInfo.stories.tsx

Lines changed: 0 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -147,65 +147,3 @@ export const HighRuns: Story = {
147147
version: "2.1.3",
148148
},
149149
};
150-
151-
export const Downloading: Story = {
152-
args: {
153-
...Default.args,
154-
name: "Download Only Agent",
155-
shortDescription:
156-
"This agent can be downloaded but not added to library (for non-logged in users)",
157-
},
158-
parameters: {
159-
mockData: [
160-
{
161-
url: "/api/auth/user",
162-
method: "GET",
163-
status: 200,
164-
response: null,
165-
},
166-
],
167-
},
168-
play: async ({ canvasElement }) => {
169-
const canvas = within(canvasElement);
170-
171-
// Test download button presence for non-logged in users
172-
const downloadButton = canvas.getByText("Download Agent as File");
173-
await expect(downloadButton).toBeInTheDocument();
174-
175-
await userEvent.hover(downloadButton);
176-
await new Promise((resolve) => setTimeout(resolve, 3000));
177-
178-
await userEvent.click(downloadButton);
179-
180-
// Should show downloading state
181-
const loadingButton = canvas.getByText("Downloading...");
182-
await expect(loadingButton).toBeInTheDocument();
183-
},
184-
};
185-
186-
export const TestingInteractions: Story = {
187-
args: {
188-
...Default.args,
189-
name: "Task Planner Pro",
190-
creator: "Productivity AI",
191-
shortDescription: "Plan and organize your tasks efficiently with AI",
192-
longDescription:
193-
"An intelligent task management system that helps you organize, prioritize, and complete your tasks more efficiently. Features smart scheduling and AI-powered suggestions.",
194-
rating: 4.2,
195-
runs: 50000,
196-
categories: ["Productivity", "Task Management", "AI"],
197-
lastUpdated: "3 days ago",
198-
version: "1.5.2",
199-
},
200-
play: async ({ canvasElement }) => {
201-
const canvas = within(canvasElement);
202-
203-
// Test add to library button
204-
const addButton = canvas.getByText("Download Agent as File");
205-
await userEvent.hover(addButton);
206-
207-
// Test category interaction
208-
const category = canvas.getByText("Productivity");
209-
await userEvent.hover(category);
210-
},
211-
};

0 commit comments

Comments
 (0)