From cc31f501e17c8fd2237b10d6670a3452cd760737 Mon Sep 17 00:00:00 2001 From: Cristhian Zanforlin Lousa Date: Tue, 28 Oct 2025 12:49:51 -0300 Subject: [PATCH] test: Remove Gmail Agent integration test (#10243) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ✅ (Gmail Agent.spec.ts): Remove Gmail Agent test file as it is no longer needed for the project. --- .../core/integrations/Gmail Agent.spec.ts | 90 ------------------- 1 file changed, 90 deletions(-) delete mode 100644 src/frontend/tests/core/integrations/Gmail Agent.spec.ts diff --git a/src/frontend/tests/core/integrations/Gmail Agent.spec.ts b/src/frontend/tests/core/integrations/Gmail Agent.spec.ts deleted file mode 100644 index 209539a597..0000000000 --- a/src/frontend/tests/core/integrations/Gmail Agent.spec.ts +++ /dev/null @@ -1,90 +0,0 @@ -import * as dotenv from "dotenv"; -import path from "path"; -import { expect, test } from "../../fixtures"; -import { awaitBootstrapTest } from "../../utils/await-bootstrap-test"; -import { initialGPTsetup } from "../../utils/initialGPTsetup"; -import { withEventDeliveryModes } from "../../utils/withEventDeliveryModes"; - -withEventDeliveryModes( - "Gmail Agent", - { tag: ["@release", "@starter-projects"] }, - async ({ page }) => { - test.skip( - !process?.env?.OPENAI_API_KEY, - "OPENAI_API_KEY required to run this test", - ); - - test.skip( - !process?.env?.COMPOSIO_API_KEY, - "COMPOSIO_API_KEY required to run this test", - ); - - if (!process.env.CI) { - dotenv.config({ path: path.resolve(__dirname, "../../.env") }); - } - - await page.goto("/"); - await awaitBootstrapTest(page); - - await page.getByTestId("side_nav_options_all-templates").click(); - await page.getByRole("heading", { name: "Gmail Agent" }).click(); - - await page.waitForSelector('[data-testid="canvas_controls_dropdown"]', { - timeout: 100000, - }); - - await initialGPTsetup(page); - - await page - .getByTestId("popover-anchor-input-api_key") - .last() - .fill(process.env.COMPOSIO_API_KEY ?? ""); - - await page.getByTestId("refresh-button-app_names").last().click(); - - await page.waitForSelector( - '[data-testid="popover-anchor-input-auth_status"]', - { - timeout: 30000, - state: "visible", - }, - ); - - const authStatus = await page - .getByTestId("popover-anchor-input-auth_status") - .last() - .inputValue(); - - await page.waitForTimeout(500); - - expect(authStatus).toBe("✅"); - - await page.getByTestId("playground-btn-flow-io").click(); - - await page.waitForSelector('[data-testid="button-send"]', { - timeout: 3000, - }); - - await page - .getByTestId("input-chat-playground") - .fill("Send an email to johndoe@test.com wishing him a happy birthday!"); - - await page.getByTestId("button-send").click(); - - await page.waitForSelector('[data-testid="div-chat-message"]', { - timeout: 3000, - }); - - await page.waitForSelector(".markdown", { timeout: 3000 }); - - const textContents = await page - .locator(".markdown") - .last() - .allTextContents(); - - const concatAllText = textContents.join(" "); - - expect(concatAllText).toContain("email"); - expect(concatAllText).toContain("successfully"); - }, -);