test(web): the render tool shows a step note
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -47,6 +47,9 @@ func TestRenderUploadProgressStatesForReview(t *testing.T) {
|
|||||||
step("save", "Saving the transcript", domain.StepDone, time.Minute, time.Second, 0, 0),
|
step("save", "Saving the transcript", domain.StepDone, time.Minute, time.Second, 0, 0),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
noted := twoEngineRun()
|
||||||
|
noted[1].Note = "The audio is 20 min long; the file claimed 1 h 19 min. If the recording was cut off, upload the complete one."
|
||||||
|
|
||||||
cases := []struct {
|
cases := []struct {
|
||||||
name, status, content string
|
name, status, content string
|
||||||
steps []domain.ProgressStep
|
steps []domain.ProgressStep
|
||||||
@@ -58,6 +61,7 @@ func TestRenderUploadProgressStatesForReview(t *testing.T) {
|
|||||||
{"lost", "transcribing", "", twoEngineRun(), 3 * time.Minute, 3 * time.Minute},
|
{"lost", "transcribing", "", twoEngineRun(), 3 * time.Minute, 3 * time.Minute},
|
||||||
{"failed", "failed", "transcription_failed", failed, 2 * time.Minute, 2 * time.Minute},
|
{"failed", "failed", "transcription_failed", failed, 2 * time.Minute, 2 * time.Minute},
|
||||||
{"done", "done", "Synthetic transcript text for the review.", done, time.Minute, time.Minute},
|
{"done", "done", "Synthetic transcript text for the review.", done, time.Minute, time.Minute},
|
||||||
|
{"noted", "transcribing", "", noted, 10 * time.Second, 4 * time.Second},
|
||||||
{"queued", "queued", "", nil, 0, 0},
|
{"queued", "queued", "", nil, 0, 0},
|
||||||
}
|
}
|
||||||
for _, c := range cases {
|
for _, c := range cases {
|
||||||
|
|||||||
Reference in New Issue
Block a user