2026-05-06 17:22:37 +05:30
|
|
|
/**
|
|
|
|
|
* Central export of all Playwright fixtures used across the E2E suite.
|
|
|
|
|
*
|
|
|
|
|
* Specs import `test` and `expect` from here instead of `@playwright/test`
|
|
|
|
|
* directly so that adding a new fixture (e.g. for a new connector) is a
|
|
|
|
|
* one-line change for every spec that needs it.
|
|
|
|
|
*
|
|
|
|
|
* Inheritance chain:
|
|
|
|
|
* base (@playwright/test)
|
|
|
|
|
* └─ searchSpaceFixtures — apiToken, searchSpace
|
2026-05-07 02:52:41 +05:30
|
|
|
* ├─ composioDriveFixtures — composioDriveConnector
|
|
|
|
|
* │ └─ composioDriveWithChatTest — chatThread
|
|
|
|
|
* └─ composioGmailFixtures — composioGmailConnector
|
|
|
|
|
* └─ composioGmailWithChatTest — chatThread
|
2026-05-07 03:42:14 +05:30
|
|
|
* └─ composioCalendarFixtures — composioCalendarConnector
|
|
|
|
|
* └─ composioCalendarWithChatTest — chatThread
|
2026-05-07 03:59:58 +05:30
|
|
|
* └─ nativeDriveFixtures — nativeDriveConnector
|
|
|
|
|
* └─ nativeDriveWithChatTest — chatThread
|
2026-05-07 04:23:20 +05:30
|
|
|
* └─ nativeGmailFixtures — nativeGmailConnector
|
|
|
|
|
* └─ nativeGmailWithChatTest — chatThread
|
2026-05-07 04:42:45 +05:30
|
|
|
* └─ nativeCalendarFixtures — nativeCalendarConnector
|
|
|
|
|
* └─ nativeCalendarWithChatTest — chatThread
|
2026-05-07 22:22:24 +05:30
|
|
|
* └─ notionFixtures — notionConnector
|
|
|
|
|
* └─ notionWithChatTest — chatThread
|
2026-05-08 01:10:12 +05:30
|
|
|
* └─ confluenceFixtures — confluenceConnector
|
|
|
|
|
* └─ confluenceWithChatTest — chatThread
|
2026-05-07 23:15:52 +05:30
|
|
|
* └─ linearFixtures — linearConnector
|
|
|
|
|
* └─ linearWithChatTest — chatThread
|
2026-05-08 00:15:39 +05:30
|
|
|
* └─ jiraFixtures — jiraConnector
|
|
|
|
|
* └─ jiraWithChatTest — chatThread
|
2026-05-08 03:09:11 +05:30
|
|
|
* └─ slackFixtures — slackConnector
|
|
|
|
|
* └─ slackWithChatTest — chatThread
|
2026-05-06 17:22:37 +05:30
|
|
|
*
|
|
|
|
|
* To add a new connector (Gmail, Slack, manual upload, etc.):
|
|
|
|
|
* 1. Add a fixture file under `fixtures/connectors/<name>.fixture.ts`.
|
|
|
|
|
* 2. Re-export it here under a new typed `test` if the new fixture
|
|
|
|
|
* doesn't compose cleanly into the existing chain.
|
|
|
|
|
*/
|
|
|
|
|
export { expect } from "@playwright/test";
|
2026-05-06 21:36:33 +05:30
|
|
|
export { chatThreadFixtures } from "./chat-thread.fixture";
|
2026-05-07 03:42:14 +05:30
|
|
|
export { composioCalendarFixtures } from "./connectors/composio-calendar.fixture";
|
2026-05-06 17:22:37 +05:30
|
|
|
export { composioDriveFixtures } from "./connectors/composio-drive.fixture";
|
2026-05-07 02:52:41 +05:30
|
|
|
export { composioGmailFixtures } from "./connectors/composio-gmail.fixture";
|
2026-05-08 01:10:12 +05:30
|
|
|
export { confluenceFixtures } from "./connectors/confluence.fixture";
|
2026-05-08 00:15:39 +05:30
|
|
|
export { jiraFixtures } from "./connectors/jira.fixture";
|
2026-05-07 23:15:52 +05:30
|
|
|
export { linearFixtures } from "./connectors/linear.fixture";
|
2026-05-07 04:42:45 +05:30
|
|
|
export { nativeCalendarFixtures } from "./connectors/native-calendar.fixture";
|
2026-05-07 03:59:58 +05:30
|
|
|
export { nativeDriveFixtures } from "./connectors/native-drive.fixture";
|
2026-05-07 04:23:20 +05:30
|
|
|
export { nativeGmailFixtures } from "./connectors/native-gmail.fixture";
|
2026-05-07 22:22:24 +05:30
|
|
|
export { notionFixtures } from "./connectors/notion.fixture";
|
2026-05-06 21:36:33 +05:30
|
|
|
export { searchSpaceFixtures } from "./search-space.fixture";
|
2026-05-08 03:09:11 +05:30
|
|
|
export { slackFixtures } from "./connectors/slack.fixture";
|
2026-05-06 17:22:37 +05:30
|
|
|
|
2026-05-06 21:36:33 +05:30
|
|
|
import { type ChatThreadFixtures, chatThreadFixtures } from "./chat-thread.fixture";
|
2026-05-07 03:42:14 +05:30
|
|
|
import { composioCalendarFixtures } from "./connectors/composio-calendar.fixture";
|
2026-05-06 17:22:37 +05:30
|
|
|
import { composioDriveFixtures } from "./connectors/composio-drive.fixture";
|
2026-05-07 02:52:41 +05:30
|
|
|
import { composioGmailFixtures } from "./connectors/composio-gmail.fixture";
|
2026-05-08 01:10:12 +05:30
|
|
|
import { confluenceFixtures } from "./connectors/confluence.fixture";
|
2026-05-08 00:15:39 +05:30
|
|
|
import { jiraFixtures } from "./connectors/jira.fixture";
|
2026-05-07 23:15:52 +05:30
|
|
|
import { linearFixtures } from "./connectors/linear.fixture";
|
2026-05-07 04:42:45 +05:30
|
|
|
import { nativeCalendarFixtures } from "./connectors/native-calendar.fixture";
|
2026-05-07 03:59:58 +05:30
|
|
|
import { nativeDriveFixtures } from "./connectors/native-drive.fixture";
|
2026-05-07 04:23:20 +05:30
|
|
|
import { nativeGmailFixtures } from "./connectors/native-gmail.fixture";
|
2026-05-07 22:22:24 +05:30
|
|
|
import { notionFixtures } from "./connectors/notion.fixture";
|
2026-05-06 17:22:37 +05:30
|
|
|
import { searchSpaceFixtures } from "./search-space.fixture";
|
2026-05-08 03:09:11 +05:30
|
|
|
import { slackFixtures } from "./connectors/slack.fixture";
|
2026-05-06 17:22:37 +05:30
|
|
|
|
|
|
|
|
/** Default `test` for specs that just need auth + a clean search space. */
|
|
|
|
|
export const test = searchSpaceFixtures;
|
|
|
|
|
/** `test` for specs that also need a pre-connected Composio Drive connector. */
|
|
|
|
|
export const composioDriveTest = composioDriveFixtures;
|
2026-05-07 02:52:41 +05:30
|
|
|
/** `test` for Drive specs that also need a chat thread. */
|
2026-05-06 21:36:33 +05:30
|
|
|
export const composioDriveWithChatTest =
|
|
|
|
|
composioDriveFixtures.extend<ChatThreadFixtures>(chatThreadFixtures);
|
2026-05-07 02:52:41 +05:30
|
|
|
/** `test` for specs that also need a pre-connected Composio Gmail connector. */
|
|
|
|
|
export const composioGmailTest = composioGmailFixtures;
|
|
|
|
|
/** `test` for Gmail specs that also need a chat thread. */
|
|
|
|
|
export const composioGmailWithChatTest =
|
|
|
|
|
composioGmailFixtures.extend<ChatThreadFixtures>(chatThreadFixtures);
|
2026-05-07 03:42:14 +05:30
|
|
|
/** `test` for specs that also need a pre-connected Composio Calendar connector. */
|
|
|
|
|
export const composioCalendarTest = composioCalendarFixtures;
|
|
|
|
|
/** `test` for Calendar specs that also need a chat thread. */
|
|
|
|
|
export const composioCalendarWithChatTest =
|
|
|
|
|
composioCalendarFixtures.extend<ChatThreadFixtures>(chatThreadFixtures);
|
2026-05-07 03:59:58 +05:30
|
|
|
/** `test` for specs that also need a pre-connected native Google Drive connector. */
|
|
|
|
|
export const nativeDriveTest = nativeDriveFixtures;
|
|
|
|
|
/** `test` for native Drive specs that also need a chat thread. */
|
|
|
|
|
export const nativeDriveWithChatTest =
|
|
|
|
|
nativeDriveFixtures.extend<ChatThreadFixtures>(chatThreadFixtures);
|
2026-05-07 04:23:20 +05:30
|
|
|
/** `test` for specs that also need a pre-connected native Gmail connector. */
|
|
|
|
|
export const nativeGmailTest = nativeGmailFixtures;
|
|
|
|
|
/** `test` for native Gmail specs that also need a chat thread. */
|
|
|
|
|
export const nativeGmailWithChatTest =
|
|
|
|
|
nativeGmailFixtures.extend<ChatThreadFixtures>(chatThreadFixtures);
|
2026-05-07 04:42:45 +05:30
|
|
|
/** `test` for specs that also need a pre-connected native Calendar connector. */
|
|
|
|
|
export const nativeCalendarTest = nativeCalendarFixtures;
|
|
|
|
|
/** `test` for native Calendar specs that also need a chat thread. */
|
|
|
|
|
export const nativeCalendarWithChatTest =
|
|
|
|
|
nativeCalendarFixtures.extend<ChatThreadFixtures>(chatThreadFixtures);
|
2026-05-07 22:22:24 +05:30
|
|
|
/** `test` for specs that also need a pre-connected Notion connector. */
|
|
|
|
|
export const notionTest = notionFixtures;
|
|
|
|
|
/** `test` for Notion specs that also need a chat thread. */
|
|
|
|
|
export const notionWithChatTest = notionFixtures.extend<ChatThreadFixtures>(chatThreadFixtures);
|
2026-05-08 01:10:12 +05:30
|
|
|
/** `test` for specs that also need a pre-connected Confluence connector. */
|
|
|
|
|
export const confluenceTest = confluenceFixtures;
|
|
|
|
|
/** `test` for Confluence specs that also need a chat thread. */
|
|
|
|
|
export const confluenceWithChatTest =
|
|
|
|
|
confluenceFixtures.extend<ChatThreadFixtures>(chatThreadFixtures);
|
2026-05-07 23:15:52 +05:30
|
|
|
/** `test` for specs that also need a pre-connected Linear connector. */
|
|
|
|
|
export const linearTest = linearFixtures;
|
|
|
|
|
/** `test` for Linear specs that also need a chat thread. */
|
|
|
|
|
export const linearWithChatTest = linearFixtures.extend<ChatThreadFixtures>(chatThreadFixtures);
|
2026-05-08 00:15:39 +05:30
|
|
|
/** `test` for specs that also need a pre-connected Jira connector. */
|
|
|
|
|
export const jiraTest = jiraFixtures;
|
|
|
|
|
/** `test` for Jira specs that also need a chat thread. */
|
|
|
|
|
export const jiraWithChatTest = jiraFixtures.extend<ChatThreadFixtures>(chatThreadFixtures);
|
2026-05-08 03:09:11 +05:30
|
|
|
/** `test` for specs that also need a pre-connected Slack connector. */
|
|
|
|
|
export const slackTest = slackFixtures;
|
|
|
|
|
/** `test` for Slack specs that also need a chat thread. */
|
|
|
|
|
export const slackWithChatTest = slackFixtures.extend<ChatThreadFixtures>(chatThreadFixtures);
|