From 17560245e245dbefd2d86ece5853a410aeb70a15 Mon Sep 17 00:00:00 2001 From: anovazzi1 Date: Thu, 28 Nov 2024 14:33:05 -0300 Subject: [PATCH] Refactor: codeAreaModalComponent.spec.ts for improved test readability and maintainability (#4928) * refactor: Update codeAreaModalComponent.spec.ts to improve test readability and maintainability * [autofix.ci] apply automated fixes --- src/frontend/tests/core/unit/codeAreaModalComponent.spec.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/frontend/tests/core/unit/codeAreaModalComponent.spec.ts b/src/frontend/tests/core/unit/codeAreaModalComponent.spec.ts index 47a8e1339..398aecd3b 100644 --- a/src/frontend/tests/core/unit/codeAreaModalComponent.spec.ts +++ b/src/frontend/tests/core/unit/codeAreaModalComponent.spec.ts @@ -52,10 +52,11 @@ test( await page.waitForSelector('[data-testid="prototypesPython Function"]', { timeout: 3000, }); - + await page.getByTestId("prototypesPython Function").hover(); await page .getByTestId("prototypesPython Function") - .dragTo(page.locator('//*[@id="react-flow-id"]')); + .getByTestId("icon-Plus") + .click(); await page.getByTestId("fit_view").click(); await page.getByTestId("zoom_out").click(); await page.getByTestId("div-generic-node").click();