test(e2e): add Slack connector Playwright journey

This commit is contained in:
Anish Sarkar 2026-05-08 03:09:11 +05:30
parent 73b6375688
commit 029f2168b3
5 changed files with 191 additions and 0 deletions

View file

@ -24,6 +24,7 @@ export const CANARY_TOKENS = {
confluenceCanary: "SURFSENSE_E2E_CANARY_TOKEN_CONFLUENCE_001",
linearCanary: "SURFSENSE_E2E_CANARY_TOKEN_LINEAR_001",
jiraCanary: "SURFSENSE_E2E_CANARY_TOKEN_JIRA_001",
slackCanary: "SURFSENSE_E2E_CANARY_TOKEN_SLACK_001",
} as const;
/**
@ -143,6 +144,19 @@ export const FAKE_JIRA_ISSUES = {
},
} as const;
/**
* Fake Slack channel IDs that match what the backend MCP fake returns from
* slack_search_channels.
*/
export const FAKE_SLACK_CHANNELS = {
canary: {
id: "C_FAKE_SLACK_CANARY",
name: "slack-e2e-canary",
teamId: "T_FAKE_SLACK_TEAM",
teamName: "SurfSense E2E Slack 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)}`;