From 6fc09d899cf32fc435f3393bb7b1d554341ca1c0 Mon Sep 17 00:00:00 2001 From: "dayuan.jiang" Date: Mon, 5 Jan 2026 01:00:06 +0900 Subject: [PATCH] test: remove flaky XML paste test --- tests/e2e/copy-paste.spec.ts | 37 ------------------------------------ 1 file changed, 37 deletions(-) diff --git a/tests/e2e/copy-paste.spec.ts b/tests/e2e/copy-paste.spec.ts index 05b4625..bfe8124 100644 --- a/tests/e2e/copy-paste.spec.ts +++ b/tests/e2e/copy-paste.spec.ts @@ -9,9 +9,6 @@ import { import { createMockSSEResponse } from "./lib/helpers" test.describe("Copy/Paste Functionality", () => { - // Clipboard tests can be flaky due to browser permissions - test.describe.configure({ retries: 1 }) - test("can paste text into chat input", async ({ page }) => { await page.goto("/", { waitUntil: "networkidle" }) await getIframe(page).waitFor({ state: "visible", timeout: 30000 }) @@ -79,40 +76,6 @@ test.describe("Copy/Paste Functionality", () => { ).toBeVisible({ timeout: 3000 }) }) - test("paste XML into XML input works", async ({ page }) => { - await page.goto("/", { waitUntil: "networkidle" }) - await getIframe(page).waitFor({ state: "visible", timeout: 30000 }) - - // Find XML input textarea - const xmlInput = page.locator( - 'textarea[placeholder*="XML"], textarea[placeholder*="mxCell"]', - ) - - // Try to expand XML section if collapsed - const xmlToggle = page.locator( - 'button:has-text("XML"), [data-testid*="xml"], details summary', - ) - if ((await xmlToggle.count()) > 0) { - await xmlToggle.first().click() - } - - // Skip if XML input not available - const xmlInputCount = await xmlInput.count() - const isXmlVisible = - xmlInputCount > 0 && (await xmlInput.first().isVisible()) - if (!isXmlVisible) { - test.skip() - return - } - - const testXml = ` - -` - - await xmlInput.first().fill(testXml) - await expect(xmlInput.first()).toHaveValue(testXml) - }) - test("keyboard shortcuts work in chat input", async ({ page }) => { await page.goto("/", { waitUntil: "networkidle" }) await getIframe(page).waitFor({ state: "visible", timeout: 30000 })