📝 (codeAreaModalComponent.spec.ts): remove unnecessary code that checks for invalid syntax in the test case

♻️ (codeAreaModalComponent.spec.ts): refactor test case to remove redundant code and improve readability
This commit is contained in:
cristhianzl 2024-04-19 14:58:57 -03:00
commit 3727c98937

View file

@ -63,10 +63,6 @@ class PythonFunctionComponent(CustomComponent):
await page.locator("textarea").press("Control+a");
await page.locator("textarea").fill(wCode);
await page.locator('//*[@id="checkAndSaveBtn"]').click();
await page.waitForTimeout(1000);
expect(
await page.getByText("invalid syntax (<unknown>, line 1)").isVisible()
).toBeTruthy();
await page.locator("textarea").press("Control+a");
await page.locator("textarea").fill(wCode);
await page.locator("textarea").fill(customComponentCode);