接口开始5%
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user