📝 (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:
parent
d87456f29c
commit
3727c98937
1 changed files with 0 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue