Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions browser_tests/tests/agent/agentFreeUsePlacement.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@ test.describe(
'the retired blanket-beta sentence is not appended'
).not.toContainText('during BETA')
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
Expand Down
2 changes: 2 additions & 0 deletions src/workbench/extensions/agent/agentDocs.ts
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
export const AGENT_DOCS_URL = 'https://docs.comfy.org/agent-tools/in-app-agent'

export const AGENT_COST_DOCS_URL = `${AGENT_DOCS_URL}#what-it-costs`
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ describe('FreeUseNotice', () => {
expect(link).toHaveAttribute('target', '_blank')
expect(link).toHaveAttribute(
'href',
'https://docs.comfy.org/agent-tools/in-app-agent'
'https://docs.comfy.org/agent-tools/in-app-agent#what-it-costs'
)
})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import type {
AgentFreeUseNoticeMetadata,
AgentFreeUsePlacement
} from '@/platform/telemetry/types'
import { AGENT_DOCS_URL } from '@/workbench/extensions/agent/agentDocs'
import { AGENT_COST_DOCS_URL } from '@/workbench/extensions/agent/agentDocs'

import { freeUseNoticeDismissedKey } from './freeUseNoticeDismissal'

Expand Down Expand Up @@ -65,7 +65,7 @@ function onDismiss(): void {
variant="link"
size="unset"
as="a"
:href="AGENT_DOCS_URL"
:href="AGENT_COST_DOCS_URL"
target="_blank"
rel="noopener noreferrer"
class="inline p-0 text-sm/5 font-normal text-foreground underline underline-offset-4"
Expand Down
Loading