Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

test(models): use the rendered element document in pricing fixture

fmfsaisaiada8b6a3b6b5
diff --git a/apps/desktop/scripts/fixtures/display-pricing/ui-page.mjs b/apps/desktop/scripts/fixtures/display-pricing/ui-page.mjs
index cd973df695..dc082a3956 100644
--- a/apps/desktop/scripts/fixtures/display-pricing/ui-page.mjs
+++ b/apps/desktop/scripts/fixtures/display-pricing/ui-page.mjs
@@ -40,7 +40,7 @@ export default {
const tier = amounts.previousElementSibling;
return {
lines: Array.from(amounts.children, part => {
- const range = document.createRange();
+ const range = original.ownerDocument.createRange();
range.selectNodeContents(part);
return range.getClientRects().length;
}),