Skip to content

Commit cc40d71

Browse files
committed
chore: Attempt at synchronizing.
1 parent 5c505a1 commit cc40d71

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/webdriverio/test/scroll_test.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,11 @@ suite('Scrolling into view', function () {
117117

118118
// Assert new block has been scrolled into the viewport.
119119
await this.browser.pause(PAUSE_TIME);
120-
await this.browser.saveScreenshot(`failures/extra_snapshot_for_verification.png`);
120+
await this.browser.execute(async () => {
121+
await Blockly.renderManagement.finishQueuedRenders()
122+
});
123+
await this.browser.pause(3000);
124+
// await this.browser.saveScreenshot(`failures/extra_snapshot_for_verification.png`);
121125
const blockBounds = await this.browser.execute(() => {
122126
const workspace = Blockly.getMainWorkspace() as Blockly.WorkspaceSvg;
123127
const block = workspace.getBlocksByType(

0 commit comments

Comments
 (0)