From 337513b83da4ec59d6bbbf7a7f85b127f2ace5f1 Mon Sep 17 00:00:00 2001 From: ThearchyHelios Date: Fri, 16 Oct 2026 18:59:50 +0800 Subject: [PATCH] =?UTF-8?q?check-publish=EF=BC=9A=E3=80=8C=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E5=88=97=E8=A1=A8=E6=A0=87=E5=87=BA=E5=B7=B2=E9=80=80?= =?UTF-8?q?=E5=BD=B9=E7=9A=84=E7=89=88=E6=9C=AC=E3=80=8D=E7=AD=89=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E5=8F=96=E5=9B=9E=E5=86=8D=E6=95=B0=EF=BC=88=E5=B9=B6?= =?UTF-8?q?=E8=A1=8C=E6=97=B6=E6=89=93=E5=BC=80=E9=82=A3=E4=B8=80=E5=88=BB?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E8=BF=98=E6=98=AF=E7=A9=BA=E7=9A=84=EF=BC=8C?= =?UTF-8?q?=E5=81=B6=E5=8F=91=E4=B8=8D=E8=BF=87=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/check-publish.mjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/check-publish.mjs b/scripts/check-publish.mjs index 388dd6ca..c689c241 100644 --- a/scripts/check-publish.mjs +++ b/scripts/check-publish.mjs @@ -2008,7 +2008,8 @@ await section('应用平台:发布成功做成应用;已发布版本的使 await page.keyboard.press('Alt+KeyH') const sheet = page.locator('[role="dialog"][aria-label="版本历史"]') await sheet.waitFor() - check('版本列表标出已退役的版本', await sheet.locator('[data-version-retired-chip]').count() === 1) + // 版本列表是打开之后才取的:等列表落地再数(并行跑时,打开那一刻列表常常还是空的) + check('版本列表标出已退役的版本', await waitFor(page, async () => await sheet.locator('[data-version-retired-chip]').count() === 1)) const retiredRow = sheet.locator('ol button', { hasText: 'v2' }).first() check('……不用点开,列表那一行就写谁退的和退役说明', await retiredRow.locator('[data-version-retired]').count() === 1 && (await retiredRow.innerText()).includes('张工') && (await retiredRow.innerText()).includes('改按支付日统计'),