fix: 优化 AI 上下文缓存与书库搜索排版并发布 v2.1.7

This commit is contained in:
lofyer
2026-08-10 09:53:49 +08:00
parent 26c7aaff66
commit e36c083751
10 changed files with 378 additions and 89 deletions
@@ -431,6 +431,14 @@ app.whenReady().then(async () => {
(await js("document.getElementById('libStatus').textContent"))
=== '搜索“Rsrch”显示 1 条,当前分类 3 条'
);
check(
'书库搜索结果提示独占工具栏下一行',
await js(`(() => {
const search = document.querySelector('.library-toolbar').getBoundingClientRect();
const status = document.getElementById('libStatus').getBoundingClientRect();
return status.top >= search.bottom && status.left === search.left;
})()`)
);
await js(`(() => {
document.getElementById('librarySearchInput').value = 'bob auth';
document.getElementById('librarySearchBtn').click();