executeNavigateStep function test
Last updated: 2026-03-05T10:53:28.864Z
Metrics
LOC: 14
Complexity: 3
Params: 1
Signature
executeNavigateStep(step: FlowStep): : Promise<StepResult>
Source Code
async function executeNavigateStep(step: FlowStep): Promise<StepResult> {
if (!step.url) {
return { status: "failed", error: "Navigate step missing url" };
}
const loaded = await navigateAndWait(tabId, step.url);
if (!loaded) {
return { status: "failed", error: `Navigation to ${step.url} timed out` };
}
// Re-inject content script after navigation
await injectContentScript(tabId);
return { status: "success" };
}
Dependencies (Outgoing)
| Target | Type |
|---|---|
| navigateAndWait | calls |
| injectContentScript | calls |
Impact (Incoming)
| Source | Type |
|---|---|
| runLoop | calls |