Skip to content

Commit 29d1553

Browse files
authored
Merge pull request #526 from FalkorDB/copilot/sub-pr-524
Fix waitForCanvasAnimationToEnd silently swallowing timeouts
2 parents e49bffb + 44ccd91 commit 29d1553

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

e2e/logic/POM/codeGraph.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -729,5 +729,10 @@ export default class CodeGraph extends BasePage {
729729
}
730730
await this.page.waitForTimeout(500);
731731
}
732+
const finalStatus = await this.canvasElement.getAttribute("data-engine-status");
733+
if (finalStatus === "stopped") {
734+
return;
735+
}
736+
throw new Error(`Canvas animation did not stop within ${timeout}ms; final status: "${finalStatus}"`);
732737
}
733738
}

0 commit comments

Comments
 (0)