fix: drop files on markdown row into same folder

This commit is contained in:
lix-2026
2026-05-24 13:59:54 +08:00
parent 36eac664f2
commit 289a44acea
3 changed files with 20 additions and 3 deletions
@@ -727,6 +727,7 @@ async function run() {
await confirmPreflight(page);
await page.waitForTimeout(800);
assert(fs.existsSync(path.join(root, "docs", "drop-on-md.txt")), "drop 到 md 文件时应写入该 md 的父目录");
assert(!fs.existsSync(path.join(root, "drop-on-md.txt")), "drop 到 Markdown 行时不应回退写入 root");
const readonlyDropRequestCount = requests.length;
await dispatchExternalFileDrop(page, readonlyRow, "readonly-drop.txt", "readonly");
await waitForPreflight(page, "操作预检失败");