@@ -343,13 +343,93 @@ Workspace compatibility:
343343
344344## Test Results
345345
346- The results page supports:
346+ The Test Results page supports inspection of Generate and CLI output folders.
347+
348+ ### Output Result Selection
349+
350+ The page must support:
347351
348352- source toggle between Generate and CLI outputs
349- - output result group selection
350- - generated file selection
351- - HTML report rendering
353+ - output result folder selection
354+ - output result folder sorting
355+ - output result folder filtering
356+ - generated file listing for the selected output folder
357+ - generated file filtering
352358- verdict outcome summarization
359+ - HTML report rendering
360+
361+ Default behavior:
362+
363+ - output result folders are sorted latest first
364+ - selecting an output folder shows a run-level verdict outcome summary by default
365+ - selecting an output folder must not automatically select the first generated file
366+ - selecting a generated test sequence file manually shows the HTML report rendering
367+
368+ ### Results Preview
369+
370+ When an output result folder is selected and no generated file is selected, the right preview area must show a run-level verdict outcome summary.
371+
372+ The summary should include:
373+
374+ - verdict outcomes
375+ - failure type distribution
376+ - sequence status overview
377+ - enough metadata to understand which run is selected
378+
379+ When a generated file is selected, the right preview area must show the corresponding HTML report.
380+
381+ The user must be able to return from the HTML report preview to the run-level verdict outcome summary.
382+
383+ ### Empty State
384+
385+ The Test Results page must support an empty state.
386+
387+ The empty state is shown when:
388+
389+ - no output result folders exist for the selected source
390+ - filters hide all available output result folders
391+ - the last output result folder was deleted
392+
393+ Expected empty-state behavior:
394+
395+ - the left panel remains visible
396+ - ` Output Results ` remains available
397+ - ` Generated Files ` shows an empty message
398+ - the right preview area shows a clear empty-state message
399+ - no stale folder, file, summary, or HTML report remains selected
400+
401+ ### Filtering
402+
403+ Output result folder filtering should support:
404+
405+ - all folders
406+ - folders with failures
407+ - folders with only OK sequences
408+
409+ Generated file filtering should support:
410+
411+ - all files
412+ - failed files
413+ - OK files
414+
415+ Filtering must not delete files. It only changes visibility in Web Studio.
416+
417+ Removing the filtering category restores the visibility of all folders and files.
418+
419+ ### Deletion
420+
421+ The page may support deleting generated result artifacts.
422+
423+ Deletion rules:
424+
425+ - deleting a generated file deletes only the selected test sequence report file
426+ - deleting an output result folder deletes the whole selected run folder
427+ - deleting an output result folder is more destructive than deleting a generated file
428+ - delete actions must require a modal confirmation
429+ - if confirmation is not explicit and clear, Web Studio must not delete anything
430+ - after deleting a selected generated file, Web Studio must clear the selected file and return to the run-level verdict outcome summary
431+ - after deleting a selected output result folder, Web Studio must refresh the output folder list and clear stale selections
432+ - if deleting an output result folder removes all existing run-level reports, WebStudio must show the default Test Results empty view
353433
354434## State Model
355435
0 commit comments