mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-12 09:12:40 +02:00
test(backend): add Composio Calendar live-tool fakes
This commit is contained in:
parent
a2af4be359
commit
bc2dc21a75
4 changed files with 140 additions and 0 deletions
|
|
@ -19,6 +19,7 @@ export const CANARY_TOKENS = {
|
|||
driveRoadmap: "SURFSENSE_E2E_ROADMAP_MARKER",
|
||||
driveArchive: "SURFSENSE_E2E_ARCHIVE_MARKER",
|
||||
gmailCanary: "SURFSENSE_E2E_CANARY_TOKEN_GMAIL_001",
|
||||
calendarCanary: "SURFSENSE_E2E_CANARY_TOKEN_CALENDAR_001",
|
||||
} as const;
|
||||
|
||||
/**
|
||||
|
|
@ -65,6 +66,23 @@ export const FAKE_GMAIL_MESSAGES = {
|
|||
},
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* Fake Calendar event IDs that match what the backend fake returns from
|
||||
* GOOGLECALENDAR_EVENTS_LIST.
|
||||
*/
|
||||
export const FAKE_CALENDAR_EVENTS = {
|
||||
canary: {
|
||||
id: "fake-calendar-event-canary-001",
|
||||
summary: "E2E Canary Calendar Event",
|
||||
location: "SurfSense E2E Room",
|
||||
},
|
||||
planning: {
|
||||
id: "fake-calendar-event-planning-001",
|
||||
summary: "E2E Planning Sync",
|
||||
location: "SurfSense Planning Room",
|
||||
},
|
||||
} 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)}`;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue