fix(polygon): unify dataset review workflow
This commit is contained in:
@@ -290,7 +290,7 @@ function commandAcceptance(overrides = {}) {
|
||||
};
|
||||
}
|
||||
|
||||
test("Polygon stays visible while worker capability gates live actions", () => {
|
||||
test("Polygon exposes one dataset surface and keeps legacy links compatible", () => {
|
||||
assert.deepEqual(resolvePolygonRunRoute("?workspace=polygon-run"), {
|
||||
active: true,
|
||||
runId: null,
|
||||
@@ -304,18 +304,27 @@ test("Polygon stays visible while worker capability gates live actions", () => {
|
||||
error: null,
|
||||
},
|
||||
);
|
||||
assert.deepEqual(resolvePolygonRunRoute("?workspace=polygon-datasets"), {
|
||||
active: true,
|
||||
runId: null,
|
||||
error: null,
|
||||
});
|
||||
assert.equal(resolvePolygonRunRoute("?workspace=missions").active, false);
|
||||
assert.match(
|
||||
resolvePolygonRunRoute("?workspace=polygon-run&run=../../etc").error,
|
||||
/некорректный/,
|
||||
);
|
||||
assert.equal(workspaceById("polygon-run").root, "polygon");
|
||||
assert.equal(workspaceById("polygon-run"), null);
|
||||
assert.equal(
|
||||
workspacesForRoot("polygon").some(({ id }) => id === "polygon-run"),
|
||||
true,
|
||||
false,
|
||||
);
|
||||
assert.equal(workspaceById("polygon-datasets").root, "polygon");
|
||||
assert.equal(workspaceById("polygon-datasets").kind, "polygon-datasets");
|
||||
assert.deepEqual(
|
||||
workspacesForRoot("polygon").map(({ id }) => id),
|
||||
["polygon-datasets"],
|
||||
);
|
||||
assert.equal(
|
||||
workspacesForRoot("system").some(({ id }) => id === "polygon-run"),
|
||||
false,
|
||||
|
||||
Reference in New Issue
Block a user