(statusText)
| 242 | } |
| 243 | |
| 244 | function isStep9FailureText(statusText) { |
| 245 | const text = normalizeStep9StatusText(statusText); |
| 246 | if (!text) return false; |
| 247 | if (isOAuthCallbackTimeoutFailure(text)) return true; |
| 248 | if (typeof isRecoverableStep9AuthFailure === 'function' && isRecoverableStep9AuthFailure(text)) { |
| 249 | return true; |
| 250 | } |
| 251 | return /回调\s*url\s*提交失败|callback\s*url\s*submit\s*failed|oauth flow is not pending/i.test(text); |
| 252 | } |
| 253 | |
| 254 | function isStep9SuccessStatus(statusText) { |
| 255 | return STEP9_SUCCESS_STATUSES.has(normalizeStep9StatusText(statusText)); |
no test coverage detected