Skip to content

Commit c82a486

Browse files
committed
chore: More logs.
1 parent 7e2035e commit c82a486

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/webdriverio/test/scroll_test.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,12 @@ suite('Scrolling into view', function () {
5050
await sendKeyAndWait(this.browser, 'm');
5151
await sendKeyAndWait(this.browser, [Key.Alt, Key.ArrowDown], 25);
5252
await sendKeyAndWait(this.browser, Key.Enter);
53+
const movedBlockBounds = await this.browser.execute(() => {
54+
const block = Blockly.getFocusManager().getFocusedNode() as Blockly.BlockSvg;
55+
const blockBounds = block.getBoundingRectangleWithoutChildren();
56+
return blockBounds;
57+
});
58+
console.log("just moved block bounds:", movedBlockBounds);
5359
// Scroll back up, leaving cursor on the draw block out of the viewport.
5460
const scrollPosition1 = await this.browser.execute(() => {
5561
const workspace = Blockly.getMainWorkspace() as Blockly.WorkspaceSvg;

0 commit comments

Comments
 (0)