feat: deprecate combine text and update templates (#7690)

* update template to use prompt

* [autofix.ci] apply automated fixes

*  (generalBugs-shard-5.spec.ts): introduce new function addLegacyComponents to handle legacy components in tests

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
This commit is contained in:
Edwin Jose 2025-04-28 10:21:47 -04:00 committed by GitHub
commit 8433d72ba3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 549 additions and 498 deletions

View file

@ -8,6 +8,7 @@ class CombineTextComponent(Component):
description = "Concatenate two text sources into a single text chunk using a specified delimiter."
icon = "merge"
name = "CombineText"
legacy: bool = True
inputs = [
MessageTextInput(

View file

@ -1,4 +1,5 @@
import { expect, test } from "@playwright/test";
import { addLegacyComponents } from "../../utils/add-legacy-components";
import { awaitBootstrapTest } from "../../utils/await-bootstrap-test";
import { zoomOut } from "../../utils/zoom-out";
@ -14,6 +15,8 @@ test(
await page.getByTestId("blank-flow").click();
await addLegacyComponents(page);
await page.getByTestId("sidebar-search-input").click();
await page.getByTestId("sidebar-search-input").fill("text input");
await page.waitForSelector('[data-testid="inputsText Input"]', {