mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-12 17:22:38 +02:00
test(web): add Notion connector journey
This commit is contained in:
parent
51db3546a9
commit
29692eb842
2 changed files with 109 additions and 0 deletions
|
|
@ -20,6 +20,7 @@ export const CANARY_TOKENS = {
|
|||
driveArchive: "SURFSENSE_E2E_ARCHIVE_MARKER",
|
||||
gmailCanary: "SURFSENSE_E2E_CANARY_TOKEN_GMAIL_001",
|
||||
calendarCanary: "SURFSENSE_E2E_CANARY_TOKEN_CALENDAR_001",
|
||||
notionCanary: "SURFSENSE_E2E_CANARY_TOKEN_NOTION_001",
|
||||
} as const;
|
||||
|
||||
/**
|
||||
|
|
@ -83,6 +84,20 @@ export const FAKE_CALENDAR_EVENTS = {
|
|||
},
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* Fake Notion page IDs that match what the backend fake returns from
|
||||
* notion_client.AsyncClient.search.
|
||||
*/
|
||||
export const FAKE_NOTION_PAGES = {
|
||||
canary: {
|
||||
id: "fake-notion-page-canary-001",
|
||||
title: "E2E Canary Notion Page",
|
||||
workspaceId: "fake-notion-workspace-001",
|
||||
workspaceName: "SurfSense E2E Notion Workspace",
|
||||
botId: "fake-notion-bot-001",
|
||||
},
|
||||
} 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