-
Notifications
You must be signed in to change notification settings - Fork 4k
Closed
Description
Expected Behavior
Please describe what should happen
I should be able to switch to the costumes tab and switch back to the code tab and then add variables.
Actual Behavior
Describe what actually happens
The variables get added to the VM but it appears that the toolbox does not update to show them. You can tell they are really being added because switching to another sprite and switching back makes them reappear.
Steps to Reproduce
Explain what someone needs to do in order to see what's described in Actual behavior above
Explained above. I also wrote an integration test to repro it that should be included in a fix:
test('Creating variables after switching tabs updates the toolbox', async () => {
await loadUri(uri);
await clickText('Costumes');
await clickText('Code');
await clickText('Variables', scope.blocksTab);
await driver.sleep(500); // Wait for scroll
await clickText('Make a List');
const el = await findByXpath("//input[@name='New list name:']");
await el.sendKeys('list1');
await clickButton('OK');
await clickText('list1', scope.blocksTab);
});