fix(webui): check explicit file links before enabling previews (#6483)

This commit is contained in:
chengyongru authored and GitHub committed 2026-10-27 09:40:44 +08:00
1 parent d1451e30e9
commit 69d2fd87b0
4 files changed
+37 -21

No files matched your search

+1
View File
@@ -157,6 +157,7 @@ for (const narrow of [false, true]) {
await expect(sentPrefix).toHaveCSS("font-weight", "400");
const sentCommand = page.locator("[data-user-text-bubble]").last().locator("p");
expect(await sentCommand.textContent()).toBe(shellCommand.trim());
await sentCommand.click();
await sentCommand.evaluate(node => {
const range = document.createRange();
range.selectNodeContents(node);