接口开始5%

This commit is contained in:
rain
2026-07-22 17:31:33 +08:00
parent eced3d1e6e
commit 9b0ad62df4
426 changed files with 20111 additions and 28472 deletions
+9
View File
@@ -51,6 +51,15 @@ const run = async () => {
try {
await send("Page.enable");
await send("Runtime.enable");
// 步骤一:F02 空内容必须由真实发布按钮触发项目内 Toast,不能依赖旧截图状态助手。
await open(send, "/pages/family/f02-publish-feed?genealogyId=1001", ".publish-state--form");
await click(send, ".publish-form .app-button");
await waitFor(send, "Boolean(document.querySelector('.app-toast'))", "F02 empty submit did not show the project Toast");
if (!(await valueOf(send, "document.querySelector('.app-toast')?.textContent.includes('请先写下动态内容')"))) {
throw new Error("F02 empty submit showed unexpected feedback");
}
for (const size of [{ width: 320, height: 568 }, { width: 412, height: 915 }]) {
await send("Emulation.setDeviceMetricsOverride", { ...size, deviceScaleFactor: 1, mobile: true, screenWidth: size.width, screenHeight: size.height });
await open(send, "/pages/family/f04-article-list?count=50", ".article-card");