Skip to content

Commit 75a8bc8

Browse files
committed
chore: Use correct parent.
1 parent 4fb876c commit 75a8bc8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/webdriverio/test/scroll_test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ suite('Scrolling into view', function () {
112112
const block = workspace.getBlocksByType(
113113
'controls_if',
114114
)[0] as Blockly.BlockSvg;
115-
const blockBounds = block.getParent()?.getBoundingRectangleWithoutChildren();
116-
return [blockBounds, block.getParent()?.getFocusableElement()?.id];
115+
const blockBounds = block.getSurroundParent()?.getBoundingRectangleWithoutChildren();
116+
return [blockBounds, block.getSurroundParent()?.getFocusableElement()?.id];
117117
});
118118
console.log("block's parent bounds:", blockParentBounds, "id:", blockParentId);
119119
const viewport = await this.browser.execute(() => {

0 commit comments

Comments
 (0)