web: unify mobile back and audit controls and link pipeline run history
This commit is contained in:
@@ -11,6 +11,13 @@ import {
|
||||
|
||||
const defaultRoute = () => ({ ...DEFAULT_ROUTE });
|
||||
|
||||
test("pipeline-specific Runs links survive reload and ignore invalid filter ids", () => {
|
||||
assert.deepEqual(parseRoute("/runs?pipeline=27"), { kind: "runs", pipelineId: 27 });
|
||||
assert.equal(serializeRoute({ kind: "runs", pipelineId: 27 }), "/runs?pipeline=27");
|
||||
assert.deepEqual(parseRoute("/runs?pipeline=bad"), { kind: "runs" });
|
||||
assert.equal(serializeRoute({ kind: "runs", pipelineId: -1 }), "/runs");
|
||||
});
|
||||
|
||||
test("default destination: empty, root, unknown and malformed paths", () => {
|
||||
for (const path of [
|
||||
undefined,
|
||||
|
||||
Reference in New Issue
Block a user