File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -162,6 +162,7 @@ class Blocks extends React.Component {
162
162
this . setLocale ( ) ;
163
163
} else {
164
164
this . props . vm . refreshWorkspace ( ) ;
165
+ this . requestToolboxUpdate ( ) ;
165
166
}
166
167
167
168
window . dispatchEvent ( new Event ( 'resize' ) ) ;
Original file line number Diff line number Diff line change @@ -252,4 +252,18 @@ describe('Working with the blocks', () => {
252
252
await driver . sleep ( 500 ) ; // Wait for scroll to finish
253
253
await clickText ( 'my\u00A0variable' ) ;
254
254
} ) ;
255
+
256
+ // Regression test for switching editor tabs causing toolbox to stop updating
257
+ test ( 'Creating variables after adding extensions updates the toolbox' , async ( ) => {
258
+ await loadUri ( uri ) ;
259
+ await clickText ( 'Costumes' ) ;
260
+ await clickText ( 'Code' ) ;
261
+ await clickText ( 'Variables' , scope . blocksTab ) ;
262
+ await driver . sleep ( 500 ) ; // Wait for scroll
263
+ await clickText ( 'Make a List' ) ;
264
+ const el = await findByXpath ( "//input[@name='New list name:']" ) ;
265
+ await el . sendKeys ( 'list1' ) ;
266
+ await clickButton ( 'OK' ) ;
267
+ await clickText ( 'list1' , scope . blocksTab ) ;
268
+ } ) ;
255
269
} ) ;
You can’t perform that action at this time.
0 commit comments