test(e2e): wire ClickUp Playwright fixtures

This commit is contained in:
Anish Sarkar 2026-05-08 13:13:08 +05:30
parent e211028866
commit 68e1d78d23
4 changed files with 100 additions and 0 deletions

View file

@ -27,6 +27,7 @@ export const CANARY_TOKENS = {
linearCanary: "SURFSENSE_E2E_CANARY_TOKEN_LINEAR_001",
jiraCanary: "SURFSENSE_E2E_CANARY_TOKEN_JIRA_001",
slackCanary: "SURFSENSE_E2E_CANARY_TOKEN_SLACK_001",
clickupCanary: "SURFSENSE_E2E_CANARY_TOKEN_CLICKUP_001",
} as const;
/**
@ -183,6 +184,19 @@ export const FAKE_SLACK_CHANNELS = {
},
} as const;
/**
* Fake ClickUp task IDs that match what the backend MCP fake returns from
* clickup_search / clickup_get_task.
*/
export const FAKE_CLICKUP_TASKS = {
canary: {
id: "fake-clickup-task-canary-001",
name: "E2E Canary ClickUp Task",
workspaceId: "fake-clickup-workspace-001",
workspaceName: "SurfSense E2E ClickUp Workspace",
},
} as const;
/** Generate a unique-per-run search space name. Keeps parallel tests isolated. */
export function uniqueSearchSpaceName(prefix = "e2e"): string {
return `${prefix}-${randomUUID().slice(0, 8)}`;