test(qa): accept Matrix error progress labels

This commit is contained in:
Vincent Koc
2026-05-03 17:28:31 -07:00
parent a8467c9fce
commit 1be1131631
3 changed files with 4 additions and 4 deletions

View File

@@ -961,7 +961,7 @@ export async function runToolProgressErrorScenario(context: MatrixQaScenarioCont
expectedPreviewKind: "notice",
finalText: buildMatrixQaToken("MATRIX_QA_TOOL_PROGRESS_ERROR"),
label: "tool progress error",
progressPattern: /read from missing-matrix-tool-progress-target\.txt/i,
progressPattern: /\bread\s*:?\s*from\s+missing-matrix-tool-progress-target\.txt\b/i,
triggerBodyBuilder: buildMatrixToolProgressErrorPrompt,
});
}

View File

@@ -2865,7 +2865,7 @@ describe("matrix live qa scenarios", () => {
event: matrixQaMessageEvent({
kind: "notice",
eventId: previewEventId,
body: "Working...\n- `read from missing-matrix-tool-progress-target.txt`",
body: "Pearling...\n`📖 Read: from missing-matrix-tool-progress-target.txt`",
}),
since: "driver-sync-preview",
},
@@ -2896,7 +2896,7 @@ describe("matrix live qa scenarios", () => {
await expect(runMatrixQaScenario(scenario!, matrixQaScenarioContext())).resolves.toMatchObject({
artifacts: {
driverEventId: "$tool-progress-error-trigger",
previewBodyPreview: "Working...\n- `read from missing-matrix-tool-progress-target.txt`",
previewBodyPreview: "Pearling...\n`📖 Read: from missing-matrix-tool-progress-target.txt`",
previewEventId: "$tool-progress-error-preview",
reply: {
eventId: "$tool-progress-error-final",