diff --git a/test/integration/blocks.test.js b/test/integration/blocks.test.js index 950d285875d2514ffcbd80402227a872d940bc56..1204fad1de871c4b6d32a705cbe3b39c13083c3f 100644 --- a/test/integration/blocks.test.js +++ b/test/integration/blocks.test.js @@ -158,7 +158,7 @@ describe('Working with the blocks', () => { await expect(logs).toEqual([]); }); - test.only('Record option from sound block menu opens sound recorder', async () => { + test('Record option from sound block menu opens sound recorder', async () => { await loadUri(uri); await clickXpath('//button[@title="Try It"]'); await clickText('Code'); @@ -174,4 +174,20 @@ describe('Working with the blocks', () => { const logs = await getLogs(); await expect(logs).toEqual([]); }); + + test('Renaming costume changes the default costume name in the toolbox', async () => { + await loadUri(uri); + await clickXpath('//button[@title="Try It"]'); + + // Rename the costume + await clickText('Costumes'); + const el = await findByXpath("//input[@value='costume1']"); + await el.sendKeys('newname'); + + // Make sure it is updated in the block menu + await clickText('Code'); + await clickText('Looks', scope.blocksTab); + await driver.sleep(500); // Wait for scroll to finish + await clickText('newname', scope.blocksTab); + }); });