web: open searched documents in the viewer and name the run's pipeline
A markdown/text artifact hit now opens the artifact viewer (with its Open run action) instead of a raw browser tab, and the run Summary's Pipeline row shows the pipeline's name beside its id and version, all in the link to the definition.
This commit is contained in:
@@ -184,12 +184,13 @@ test("summaryRows is the Android order, omitting blank values", () => {
|
||||
});
|
||||
|
||||
test("the Pipeline summary row carries the pipeline and version for navigation", () => {
|
||||
const rows = summaryRows({ pipeline_id: 24, version: 6, status: "succeeded" }, 0, TIME_OPTS);
|
||||
const rows = summaryRows({ pipeline_id: 24, name: "Plan and land", version: 6, status: "succeeded" }, 0, TIME_OPTS);
|
||||
const row = rows.find((entry) => entry.kind === "pipeline");
|
||||
assert.ok(row, "a pipeline row rather than plain text");
|
||||
assert.equal(row.key, "Pipeline");
|
||||
assert.equal(row.value, "id 24 · v6");
|
||||
assert.equal(row.pipelineId, 24);
|
||||
assert.equal(row.pipelineName, "Plan and land");
|
||||
assert.equal(row.version, 6);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user