We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7798ab4 commit 00da657Copy full SHA for 00da657
1 file changed
src/weixin/index.ts
@@ -152,8 +152,10 @@ export async function toRelease() {
152
const statusText = await page.evaluate((el) => {
153
return el?.innerHTML
154
}, statusEle)
155
- if (statusText !== '审核通过待发布')
+ if (statusText !== '审核通过待发布') {
156
+ spinner.fail(statusText)
157
throw new Error(statusText)
158
+ }
159
const submitBtn = await page.waitForSelector('#js_container_box > div.col_main > div > div:nth-child(2) > div.main_bd > span > div.code_mod.mod_default_box.code_version_test > div.mod_default_bd.default_box.test_version > div > div > div.code_version_log_ft > div > div.weui-desktop-popover__wrp > span > div > button')
160
// 点击提交审核
161
await submitBtn?.click()
0 commit comments