mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-12 09:12:40 +02:00
test(web): add native Google Gmail live-tool journey
This commit is contained in:
parent
a5c04cb38d
commit
9dafd38e19
5 changed files with 183 additions and 1 deletions
9
surfsense_web/tests/fixtures/index.ts
vendored
9
surfsense_web/tests/fixtures/index.ts
vendored
|
|
@ -16,6 +16,8 @@
|
|||
* └─ composioCalendarWithChatTest — chatThread
|
||||
* └─ nativeDriveFixtures — nativeDriveConnector
|
||||
* └─ nativeDriveWithChatTest — chatThread
|
||||
* └─ nativeGmailFixtures — nativeGmailConnector
|
||||
* └─ nativeGmailWithChatTest — chatThread
|
||||
*
|
||||
* To add a new connector (Gmail, Slack, manual upload, etc.):
|
||||
* 1. Add a fixture file under `fixtures/connectors/<name>.fixture.ts`.
|
||||
|
|
@ -28,6 +30,7 @@ export { composioCalendarFixtures } from "./connectors/composio-calendar.fixture
|
|||
export { composioDriveFixtures } from "./connectors/composio-drive.fixture";
|
||||
export { composioGmailFixtures } from "./connectors/composio-gmail.fixture";
|
||||
export { nativeDriveFixtures } from "./connectors/native-drive.fixture";
|
||||
export { nativeGmailFixtures } from "./connectors/native-gmail.fixture";
|
||||
export { searchSpaceFixtures } from "./search-space.fixture";
|
||||
|
||||
import { type ChatThreadFixtures, chatThreadFixtures } from "./chat-thread.fixture";
|
||||
|
|
@ -35,6 +38,7 @@ import { composioCalendarFixtures } from "./connectors/composio-calendar.fixture
|
|||
import { composioDriveFixtures } from "./connectors/composio-drive.fixture";
|
||||
import { composioGmailFixtures } from "./connectors/composio-gmail.fixture";
|
||||
import { nativeDriveFixtures } from "./connectors/native-drive.fixture";
|
||||
import { nativeGmailFixtures } from "./connectors/native-gmail.fixture";
|
||||
import { searchSpaceFixtures } from "./search-space.fixture";
|
||||
|
||||
/** Default `test` for specs that just need auth + a clean search space. */
|
||||
|
|
@ -59,3 +63,8 @@ export const nativeDriveTest = nativeDriveFixtures;
|
|||
/** `test` for native Drive specs that also need a chat thread. */
|
||||
export const nativeDriveWithChatTest =
|
||||
nativeDriveFixtures.extend<ChatThreadFixtures>(chatThreadFixtures);
|
||||
/** `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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue