(tabId, responseTimeoutMs = 1500)
| 6019 | } |
| 6020 | |
| 6021 | async function getStep8PageState(tabId, responseTimeoutMs = 1500) { |
| 6022 | try { |
| 6023 | const result = await sendTabMessageWithTimeout(tabId, 'signup-page', { |
| 6024 | type: 'STEP8_GET_STATE', |
| 6025 | source: 'background', |
| 6026 | payload: {}, |
| 6027 | }, responseTimeoutMs); |
| 6028 | if (result?.error) { |
| 6029 | throw new Error(result.error); |
| 6030 | } |
| 6031 | return result; |
| 6032 | } catch (err) { |
| 6033 | if (isRetryableContentScriptTransportError(err)) { |
| 6034 | return null; |
| 6035 | } |
| 6036 | throw err; |
| 6037 | } |
| 6038 | } |
| 6039 | |
| 6040 | async function waitForStep8Ready(tabId, timeoutMs = STEP8_READY_WAIT_TIMEOUT_MS) { |
| 6041 | const start = Date.now(); |
no test coverage detected