From 2ad73df1b5e8ff6ce3313434e53671f4e4ecc302 Mon Sep 17 00:00:00 2001 From: Cristhian Zanforlin Lousa Date: Mon, 23 Jun 2025 15:57:46 -0300 Subject: [PATCH] test: update backend config, frontend utilities, and test coverage (#8671) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * ✨ (custom-get-download-folders.ts): update default filename to include folderName variable to provide more context and improve user experience * ✨ (custom-get-download-folders.ts): update folder name from "My Projects" to "Starter Project" for better clarity and consistency * 📝 (.github/changes-filter.yaml): add new directory 'serialization' to components list for changes filtering 🐛 (general-bugs-truncate-results.spec.ts): fix typo in 'truncated' word and update timeout for better test reliability * 🔧 (custom-get-download-folders.ts): Remove unnecessary conditional statement and update default filename for download to "flows.zip" for better clarity. --- .github/changes-filter.yaml | 1 + .../general-bugs-truncate-results.spec.ts | 19 ++++++++++++++++--- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/.github/changes-filter.yaml b/.github/changes-filter.yaml index 91cfed824..b103ce3bf 100644 --- a/.github/changes-filter.yaml +++ b/.github/changes-filter.yaml @@ -54,6 +54,7 @@ components: - "src/backend/base/langflow/custom/**" - "src/backend/base/langflow/components/**" - "src/backend/base/langflow/initial_setup/**" + - "src/backend/base/langflow/serialization/**" workspace: - "src/backend/base/langflow/inputs/**" diff --git a/src/frontend/tests/extended/regression/general-bugs-truncate-results.spec.ts b/src/frontend/tests/extended/regression/general-bugs-truncate-results.spec.ts index 9954c2f3f..3df7acead 100644 --- a/src/frontend/tests/extended/regression/general-bugs-truncate-results.spec.ts +++ b/src/frontend/tests/extended/regression/general-bugs-truncate-results.spec.ts @@ -22,17 +22,25 @@ test.skip( targetPosition: { x: 300, y: 300 }, }); + await page.getByTestId("input-list-plus-btn_urls-0").click(); + await page .getByTestId("inputlist_str_urls_0") .fill("https://docs.langflow.org/"); + await page + .getByTestId("inputlist_str_urls_1") + .fill("https://www.langflow.org/"); + + await page.getByTitle("fit view").click(); + await page.getByTestId("default_slider_display_value").click(); - await page.getByTestId("slider_input").fill("4"); + await page.getByTestId("slider_input").fill("5"); await page.getByTestId("button_run_url").click(); await page.waitForSelector("text=built successfully", { - timeout: 30000, + timeout: 60000 * 3, }); await page @@ -43,7 +51,12 @@ test.skip( exact: true, }); - expect(page.getByText(`[truncated`)).toBeVisible(); + await page.waitForSelector("text=truncated", { + timeout: 3000, + }); + + const trucatedWordCount = await page.getByText(`[truncated`).count(); + expect(trucatedWordCount).toBeGreaterThan(0); expect(page.locator("span.ag-header-cell-text").nth(1)).toHaveText("url");