diff --git a/test/integration/test.js b/test/integration/test.js index 57feb8e085effb080c5bd20731116e2ae7d46b37..eaf11ead1fc769ba407cb07c373db13865946d2b 100644 --- a/test/integration/test.js +++ b/test/integration/test.js @@ -163,4 +163,18 @@ describe('costumes, sounds and variables', () => { const logs = await getLogs(errorWhitelist); await expect(logs).toEqual([]); }); + + test('Deleting only sprite does not crash', async () => { + const spriteTileContext = '*[starts-with(@class,"react-contextmenu-wrapper")]'; + await loadUri(uri); + await new Promise(resolve => setTimeout(resolve, 1000)); // Wait for scroll animation + await rightClickText('Sprite1', spriteTileContext); + await clickText('delete', spriteTileContext); + await driver.switchTo().alert() + .accept(); + // Confirm that the stage has been switched to + await findByText('Stage selected: no motion blocks'); + const logs = await getLogs(errorWhitelist); + await expect(logs).toEqual([]); + }); });