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

@ -31,8 +31,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

@ -98,13 +98,7 @@ test(
timeout: 3000,
});
await page.getByTestId("more-options-modal").click();
await page.waitForSelector('[data-testid="freeze-path-button"]', {
timeout: 3000,
});
await page.getByTestId("freeze-path-button").click();
await page.getByText("Freeze").first().click();
await page.waitForTimeout(2000);

View file

@ -262,17 +262,7 @@ test(
await page.getByText("Split Text", { exact: true }).click();
await page.waitForSelector('[data-testid="more-options-modal"]', {
timeout: 1000,
});
await page.getByTestId("more-options-modal").click();
await page.waitForSelector('[data-testid="icon-Snowflake"]', {
timeout: 1000,
});
await page.getByText("Freeze", { exact: true }).first().click();
await page.getByText("Freeze").first().click();
await page.waitForTimeout(3000);