midscene icon indicating copy to clipboard operation
midscene copied to clipboard

[Bug]: report-tool exports broken image paths in markdown when using html-and-external-assets mode

Open Ethan77-d opened this issue 7 months ago • 0 comments

Version

windows
android
@midscene/android 1.7.5

Details

When using report-tool with generation mode set to html-and-external-assets, the exported markdown has incorrect image paths. The image files are renamed with task numbers prepended, but the markdown still references the original (un-prefixed) filenames.

Reproduce link

N/A

Reproduce Steps

npx @midscene/android report-tool --action to-markdown --htmlPath index.html --outputDir output-markdown

原文 / Original

Title: [Bug]: report-tool 当生成报告模式是html-and-external-assets时,导出的markdown 图片路径会异常

Version

windows
android
@midscene/android 1.7.5

Details

report-tool 当生成报告模式是html-and-external-assets时,导出的markdown 图片路径会异常,图片会被修改命令增加task编号,但是markdown 中缺少了编号,又是用的原始的

Reproduce link

无

Reproduce Steps

npx @midscene/android report-tool --action to-markdown --htmlPath index.html --outputDir output-markdown

Ethan77-d avatar Apr 23 '26 07:04 Ethan77-d