test: make decision center blocker assertion case-insensitive
This commit is contained in:
+2
-1
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user