Spaces:
Running
Running
Try fixing the last tests.
Browse files
lynxkite-app/web/tests/errors.spec.ts
CHANGED
|
@@ -23,7 +23,7 @@ test("missing parameter", async () => {
|
|
| 23 |
await workspace.addBox("NX › Scale-Free Graph");
|
| 24 |
const graphBox = workspace.getBox("NX › Scale-Free Graph 1");
|
| 25 |
await expect(graphBox.locator(".error")).toHaveText("n is unset.");
|
| 26 |
-
await graphBox.getByLabel("n").fill("10");
|
| 27 |
await expect(graphBox.locator(".error")).not.toBeVisible();
|
| 28 |
});
|
| 29 |
|
|
@@ -31,6 +31,8 @@ test("unknown operation", async () => {
|
|
| 31 |
// Test that the correct error is displayed when the operation does not belong to
|
| 32 |
// the current environment.
|
| 33 |
await workspace.addBox("NX › Scale-Free Graph");
|
|
|
|
|
|
|
| 34 |
await workspace.setEnv("LynxScribe");
|
| 35 |
const csvBox = workspace.getBox("NX › Scale-Free Graph 1");
|
| 36 |
await expect(csvBox.locator(".error")).toHaveText(
|
|
|
|
| 23 |
await workspace.addBox("NX › Scale-Free Graph");
|
| 24 |
const graphBox = workspace.getBox("NX › Scale-Free Graph 1");
|
| 25 |
await expect(graphBox.locator(".error")).toHaveText("n is unset.");
|
| 26 |
+
await graphBox.getByLabel("n", { exact: true }).fill("10");
|
| 27 |
await expect(graphBox.locator(".error")).not.toBeVisible();
|
| 28 |
});
|
| 29 |
|
|
|
|
| 31 |
// Test that the correct error is displayed when the operation does not belong to
|
| 32 |
// the current environment.
|
| 33 |
await workspace.addBox("NX › Scale-Free Graph");
|
| 34 |
+
const graphBox = workspace.getBox("NX › Scale-Free Graph 1");
|
| 35 |
+
await graphBox.getByLabel("n", { exact: true }).fill("10");
|
| 36 |
await workspace.setEnv("LynxScribe");
|
| 37 |
const csvBox = workspace.getBox("NX › Scale-Free Graph 1");
|
| 38 |
await expect(csvBox.locator(".error")).toHaveText(
|