diff --git a/services/cowork-service/e2e/ecosystem-integration.test.ts b/services/cowork-service/e2e/ecosystem-integration.test.ts index a2823777..4a31d2d2 100644 --- a/services/cowork-service/e2e/ecosystem-integration.test.ts +++ b/services/cowork-service/e2e/ecosystem-integration.test.ts @@ -1,12 +1,15 @@ import { afterAll, beforeAll, describe, expect, it } from 'vitest'; import { createServer, type Server } from 'node:http'; -const runIntegration = Boolean(process.env.INTEGRATION_TESTS); +const integrationEmail = process.env.INTEGRATION_TEST_EMAIL; +const integrationPassword = process.env.INTEGRATION_TEST_PASSWORD; + +const runIntegration = Boolean( + process.env.INTEGRATION_TESTS && integrationEmail && integrationPassword +); const platformBaseUrl = process.env.PLATFORM_SERVICE_URL ?? 'http://localhost:4003/api'; const coworkBaseUrl = process.env.COWORK_SERVICE_URL ?? 'http://localhost:4009'; -const integrationEmail = process.env.INTEGRATION_TEST_EMAIL; -const integrationPassword = process.env.INTEGRATION_TEST_PASSWORD; const integrationProductId = 'clawcowork'; type JsonRecord = Record;