test(web): add Linear live-tool journey

This commit is contained in:
Anish Sarkar 2026-05-07 23:16:04 +05:30
parent a60ff02b93
commit 64ed33d25d
2 changed files with 98 additions and 0 deletions

View file

@ -21,6 +21,7 @@ export const CANARY_TOKENS = {
gmailCanary: "SURFSENSE_E2E_CANARY_TOKEN_GMAIL_001",
calendarCanary: "SURFSENSE_E2E_CANARY_TOKEN_CALENDAR_001",
notionCanary: "SURFSENSE_E2E_CANARY_TOKEN_NOTION_001",
linearCanary: "SURFSENSE_E2E_CANARY_TOKEN_LINEAR_001",
} as const;
/**
@ -98,6 +99,20 @@ export const FAKE_NOTION_PAGES = {
},
} as const;
/**
* Fake Linear issue IDs that match what the backend MCP fake returns from
* list_issues / get_issue.
*/
export const FAKE_LINEAR_ISSUES = {
canary: {
id: "fake-linear-issue-canary-001",
identifier: "E2E-101",
title: "E2E Canary Linear Issue",
organizationName: "SurfSense E2E Linear Org",
organizationUrlKey: "surfsense-e2e",
},
} 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)}`;