From eca2a97706236faadcb5df8f1c7a1dce14296bba Mon Sep 17 00:00:00 2001 From: Christian Byrne Date: Tue, 27 Oct 2026 00:52:20 +0000 Subject: [PATCH] Link free-use notice to cost details (#22025) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Point the free-use notice's “Learn more” link at the Agent documentation's `#what-it-costs` section. General Agent and consent links continue to open the page root. Follow-up to [DES-1221](https://linear.app/comfyorg/issue/DES-1221). - `pnpm test:unit src/workbench/extensions/agent/components/agent/FreeUseNotice.test.ts --testTimeout=30000` (5 passed) - `PLAYWRIGHT_LOCAL=1 PLAYWRIGHT_TEST_URL=http://127.0.0.1:5178 PLAYWRIGHT_SETUP_API_URL=https://testcloud.comfy.org DISTRIBUTION=cloud pnpm exec playwright test browser_tests/tests/agent/agentFreeUsePlacement.spec.ts --project=cloud --workers=1 --retries=0` (2 passed) - Pre-commit formatting, lint, application typecheck, and browser typecheck passed. - Verified the published docs page contains the `what-it-costs` anchor. --- browser_tests/tests/agent/agentFreeUsePlacement.spec.ts | 6 ++++++ .../extensions/agent/components/agent/FreeUseNotice.test.ts | 2 +- .../extensions/agent/components/agent/FreeUseNotice.vue | 4 ++-- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/browser_tests/tests/agent/agentFreeUsePlacement.spec.ts b/browser_tests/tests/agent/agentFreeUsePlacement.spec.ts index f09cfea738f..433c2c0c966 100644 --- a/browser_tests/tests/agent/agentFreeUsePlacement.spec.ts +++ b/browser_tests/tests/agent/agentFreeUsePlacement.spec.ts @@ -31,6 +31,12 @@ test.describe( }) await expect(notice).toBeVisible() await expect(notice).toHaveAttribute('data-placement', PLACEMENT) + await expect( + notice.getByRole('link', { name: 'Learn more' }) + ).toHaveAttribute( + 'href', + 'https://docs.comfy.org/agent-tools/in-app-agent#what-it-costs' + ) const composer = agentPanel.root.getByTestId('agent-composer') await expect diff --git a/src/workbench/extensions/agent/components/agent/FreeUseNotice.test.ts b/src/workbench/extensions/agent/components/agent/FreeUseNotice.test.ts index 8cddb0658fe..ec3068d4b0d 100644 --- a/src/workbench/extensions/agent/components/agent/FreeUseNotice.test.ts +++ b/src/workbench/extensions/agent/components/agent/FreeUseNotice.test.ts @@ -43,7 +43,7 @@ describe('FreeUseNotice', () => { expect(link).toHaveAttribute('target', '_blank') expect(link).toHaveAttribute( 'href', - 'https://docs.comfy.org/get_started/cloud' + 'https://docs.comfy.org/agent-tools/in-app-agent#what-it-costs' ) }) diff --git a/src/workbench/extensions/agent/components/agent/FreeUseNotice.vue b/src/workbench/extensions/agent/components/agent/FreeUseNotice.vue index ffedcd22e73..b2cd69848f0 100644 --- a/src/workbench/extensions/agent/components/agent/FreeUseNotice.vue +++ b/src/workbench/extensions/agent/components/agent/FreeUseNotice.vue @@ -8,10 +8,10 @@ import type { AgentFreeUseNoticeMetadata, AgentFreeUsePlacement } from '@/platform/telemetry/types' - import { FREE_USE_NOTICE_DISMISSED_KEY } from './freeUseNoticeDismissal' -const FREE_USE_DOCS_URL = 'https://docs.comfy.org/get_started/cloud' +const FREE_USE_DOCS_URL = + 'https://docs.comfy.org/agent-tools/in-app-agent#what-it-costs' const PLACEMENT_CLASSES = { 'top-banner': 'px-4 py-3',