fix: removed duplicate controls from node toolbar (#7274)

* Removed duplicate elements from node toolbar

* Fixed freeze tests

* Replaced advanced button modal with edit button modal in all tests

* Fixed freeze test

* Fixed tests

* Readded freeze when there is tool mode

---------

Co-authored-by: Carlos Coelho <80289056+carlosrcoelho@users.noreply.github.com>
This commit is contained in:
Lucas Oliveira 2025-03-29 21:54:20 -03:00 • committed by GitHub
commit 5e39d3f1e2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 40 additions and 99 deletions

View file

@ -41,8 +41,7 @@ test(
await page.waitForSelector("text=Chat Input", { timeout: 30000 });
await page.getByText("Chat Input", { exact: true }).click();
await page.getByTestId("more-options-modal").click();
await page.getByTestId("advanced-button-modal").click();
await page.getByTestId("edit-button-modal").last().click();
await page.getByText("Close").last().click();
await page.getByText("Playground", { exact: true }).last().click();

View file

@ -27,8 +27,7 @@ test(
await page.waitForSelector("text=Chat Input", { timeout: 30000 });
await page.getByText("Chat Input", { exact: true }).click();
await page.getByTestId("more-options-modal").click();
await page.getByTestId("advanced-button-modal").click();
await page.getByTestId("edit-button-modal").last().click();
await page.getByTestId("showfiles").click();
await page.getByText("Close").last().click();

View file

@ -66,6 +66,9 @@ test(
await page.getByText("Prompt", { exact: true }).last().click();
await page.waitForSelector('[data-testid="more-options-modal"]', {
timeout: 1000,
});
await page.getByTestId("more-options-modal").click();
await page.getByText("Freeze", { exact: true }).first().click();