R31-1 R31-4: 收口详情页工作台化与 E2E 契约
这个提交包含在:
@@ -14,15 +14,22 @@ async function waitForWorkflowTaskCache(page: import("@playwright/test").Page, t
|
||||
request.onerror = () => reject(request.error ?? new Error("indexeddb_open_failed"));
|
||||
});
|
||||
|
||||
const store = db.transaction("workflow_task_cache", "readonly").objectStore("workflow_task_cache");
|
||||
const detail = await new Promise<unknown>((resolve, reject) => {
|
||||
const query = store.get(currentTaskId);
|
||||
query.onsuccess = () => resolve(query.result ?? null);
|
||||
query.onerror = () => reject(query.error ?? new Error("indexeddb_read_failed"));
|
||||
});
|
||||
try {
|
||||
if (!db.objectStoreNames.contains("workflow_task_cache")) {
|
||||
return false;
|
||||
}
|
||||
|
||||
db.close();
|
||||
return Boolean(detail);
|
||||
const store = db.transaction("workflow_task_cache", "readonly").objectStore("workflow_task_cache");
|
||||
const detail = await new Promise<unknown>((resolve, reject) => {
|
||||
const query = store.get(currentTaskId);
|
||||
query.onsuccess = () => resolve(query.result ?? null);
|
||||
query.onerror = () => reject(query.error ?? new Error("indexeddb_read_failed"));
|
||||
});
|
||||
|
||||
return Boolean(detail);
|
||||
} finally {
|
||||
db.close();
|
||||
}
|
||||
}, taskId);
|
||||
},
|
||||
{ timeout: 15_000 },
|
||||
|
||||
在新工单中引用
屏蔽一个用户