(step)
| 155 | } |
| 156 | |
| 157 | async function deleteCurrentMailboxMessage(step) { |
| 158 | try { |
| 159 | const deleteButton = await waitForElement('.button-bar button.danger', 5000); |
| 160 | simulateClick(deleteButton); |
| 161 | log(`步骤 ${step}:已删除邮箱消息`, 'ok'); |
| 162 | await sleep(1200); |
| 163 | } catch (err) { |
| 164 | log(`步骤 ${step}:删除邮箱消息失败:${err.message}`, 'warn'); |
| 165 | } |
| 166 | } |
| 167 | |
| 168 | async function handleMailboxPollEmail(step, payload) { |
| 169 | const { |
no test coverage detected