style(agents): animate processor diagram connections

This commit is contained in:
RockChinQ
2026-08-27 15:18:34 +08:00
parent e20a73c83a
commit 05fe93e108
2 changed files with 59 additions and 1 deletions
+9
View File
@@ -183,11 +183,20 @@ test.describe('frontend CRUD smoke flows', () => {
);
await expect(agentTypeCard).toHaveAttribute('aria-checked', 'true');
await expect(page.getByTestId('agent-diagram')).toBeVisible();
await expect(
page.getByTestId('agent-diagram').locator('[data-motion="flow"]'),
).toHaveCount(3);
await expect(
page.getByTestId('agent-diagram').locator('[data-motion="relation"]'),
).toHaveCount(3);
await expect(page.getByTestId('pipeline-diagram')).toHaveCount(0);
await page.getByRole('radio', { name: /^Pipeline/ }).click();
await expect(pipelineTypeCard).toHaveAttribute('aria-checked', 'true');
await expect(page.getByTestId('pipeline-diagram')).toBeVisible();
await expect(
page.getByTestId('pipeline-diagram').locator('[data-motion="flow"]'),
).toHaveCount(1);
await expect(page.getByTestId('agent-diagram')).toHaveCount(0);
await expect(page.locator('input[name="name"]')).toBeVisible();