fix: add minimized attribute to components and make chatinput and chatoutput start minimized by default (#5374)

* Added Minimized field to backend to make component start as minimized

* Added minimized as true to chat components

* Added showNode default value as the opposite of minimized

* Changed starter projects to new components

* [autofix.ci] apply automated fixes

* [autofix.ci] apply automated fixes (attempt 2/3)

* Fixed Freeze and DecisionFlow tests

* Fixed other tests that involved chatoutput and chatinput

* Restored tests that didnt fail

* Fixed stop playground test

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
Lucas Oliveira 2024-12-23 19:09:22 -03:00 • committed by GitHub
commit bd7f913d28
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
32 changed files with 90 additions and 47 deletions

View file

@ -1,4 +1,4 @@
import { Page, test } from "@playwright/test";
import { test } from "@playwright/test";
import * as dotenv from "dotenv";
import path from "path";
import { awaitBootstrapTest } from "../../utils/await-bootstrap-test";
@ -247,7 +247,7 @@ test(
.nth(1)
.click();
await page
.getByTestId("handle-chatinput-shownode-message-right")
.getByTestId("handle-chatinput-noshownode-message-source")
.nth(0)
.click();
await page
@ -333,7 +333,7 @@ test(
.nth(2)
.click();
await page
.getByTestId("handle-chatoutput-shownode-text-left")
.getByTestId("handle-chatoutput-noshownode-text-target")
.nth(0)
.click();
await page
@ -341,7 +341,7 @@ test(
.nth(0)
.click();
await page
.getByTestId("handle-chatoutput-shownode-text-left")
.getByTestId("handle-chatoutput-noshownode-text-target")
.nth(1)
.click();
const apiKeyInput = page.getByTestId("popover-anchor-input-api_key");