Skip to content
Snippets Groups Projects
Commit 11c81624 authored by Paul Kaplan's avatar Paul Kaplan
Browse files

Add integration test for deleting the only sprite

parent 487e05cb
No related branches found
No related tags found
No related merge requests found
......@@ -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([]);
});
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment