Skip to content

Commit d44fec2

Browse files
committed
chore: Add position log.
1 parent cb6f91f commit d44fec2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/webdriverio/test/scroll_test.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,14 @@ suite('Scrolling into view', function () {
116116
return blockBounds;
117117
});
118118
console.log("block bounds:", blockBounds);
119+
const blockPosition = await this.browser.execute(() => {
120+
const workspace = Blockly.getMainWorkspace() as Blockly.WorkspaceSvg;
121+
const block = workspace.getBlocksByType(
122+
'controls_if',
123+
)[0] as Blockly.BlockSvg;
124+
return block.getRelativeToSurfaceXY();
125+
});
126+
console.log("block position:", blockPosition);
119127
const [blockParentBounds, blockParentId] = await this.browser.execute(() => {
120128
const workspace = Blockly.getMainWorkspace() as Blockly.WorkspaceSvg;
121129
const block = workspace.getBlocksByType(

0 commit comments

Comments
 (0)