Skip to content

Commit 7d211bd

Browse files
committed
chore: Add test
1 parent a5608ef commit 7d211bd

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/browser/test/toolbox_drag_test.mjs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,4 +207,13 @@ suite('Open toolbox categories', function () {
207207
);
208208
await openCategories(this.browser, testCategories, screenDirection.RTL);
209209
});
210+
211+
test('clicking the toolbox itself does not open the flyout', async function () {
212+
this.browser = await testSetup(testFileLocations.PLAYGROUND);
213+
await this.browser.$('.blocklyToolbox').click();
214+
const flyoutOpen = await this.browser.execute(() => {
215+
return Blockly.getMainWorkspace().getFlyout().isVisible();
216+
});
217+
chai.assert.isFalse(flyoutOpen);
218+
});
210219
});

0 commit comments

Comments
 (0)