Skip to content

Commit 4fb876c

Browse files
committed
chore: More logs.
1 parent c82a486 commit 4fb876c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/webdriverio/test/scroll_test.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,15 @@ suite('Scrolling into view', function () {
107107
return blockBounds;
108108
});
109109
console.log("block bounds:", blockBounds);
110+
const [blockParentBounds, blockParentId] = await this.browser.execute(() => {
111+
const workspace = Blockly.getMainWorkspace() as Blockly.WorkspaceSvg;
112+
const block = workspace.getBlocksByType(
113+
'controls_if',
114+
)[0] as Blockly.BlockSvg;
115+
const blockBounds = block.getParent()?.getBoundingRectangleWithoutChildren();
116+
return [blockBounds, block.getParent()?.getFocusableElement()?.id];
117+
});
118+
console.log("block's parent bounds:", blockParentBounds, "id:", blockParentId);
110119
const viewport = await this.browser.execute(() => {
111120
const workspace = Blockly.getMainWorkspace() as Blockly.WorkspaceSvg;
112121
const rawViewport = workspace.getMetricsManager().getViewMetrics(true);

0 commit comments

Comments
 (0)