fix(create): 参考内容 - 支持添加、独立删除与筛选管理
- 支持参考内容按稳定 ID 删除、筛选、清空、拖拽与触屏交互 - 保留 Vite 生产环境模型 Logo 加载并兼容 Bun 测试 - 同步最新 main,修正相关格式和陈旧测试断言 Co-authored-by: echoD886 <dingxiaojie66@gmail.com>
This commit is contained in:
@@ -672,7 +672,15 @@ async function saveFailureCloseGuard(cdp, baseUrl) {
|
||||
|
||||
const stayClicked = await cdp.clickText("留在导演台");
|
||||
if (!stayClicked) throw new Error("F: 留在导演台 button not clickable");
|
||||
const modalGone = await cdp.poll(`!document.querySelector('.ant-modal-confirm')`, "modal dismissed", 20000);
|
||||
const modalGone = await cdp.poll(
|
||||
`![...document.querySelectorAll('.ant-modal-confirm')].some((modal) => {
|
||||
const rect = modal.getBoundingClientRect();
|
||||
const style = getComputedStyle(modal);
|
||||
return rect.width > 0 && rect.height > 0 && style.display !== 'none' && style.visibility !== 'hidden' && Number(style.opacity) > 0;
|
||||
})`,
|
||||
"modal dismissed",
|
||||
20000,
|
||||
);
|
||||
assert(modalGone, "F6 confirm dialog dismissed after choosing 留在导演台");
|
||||
|
||||
await sleep(1000);
|
||||
|
||||
Reference in New Issue
Block a user