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
This commit is contained in:
anovazzi1 2024-11-28 14:33:05 -03:00 committed by GitHub
commit 17560245e2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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();