test: make decision center blocker assertion case-insensitive

This commit is contained in:
Codex
2026-05-17 08:19:36 +00:00
parent 0bd281207a
commit 12368b7091
+2 -1
View File
@@ -1871,9 +1871,10 @@ async function frontendCheck(config: UniDeskConfig, urls: PublicUrls, checks: E2
await page.waitForSelector('[data-testid="decision-center-record-table"]', { timeout: 30000 });
await page.waitForFunction((title) => {
const text = document.body.innerText;
const lowerText = text.toLowerCase();
return text.includes("Decision Center")
&& text.includes("G0/G1 目标")
&& text.includes("P0/P1 Blocker")
&& lowerText.includes("p0/p1 blocker")
&& text.includes("停放事项")
&& text.includes("最近会议/决议")
&& text.includes("查看原始JSON")