diff --git a/test/integration/costumes.test.js b/test/integration/costumes.test.js index 04a0f338cf65b4f9c664b5bd2aa728cb73ba29a0..6cc036901cf79de20f8ad4cf493c5d53ae4263df 100644 --- a/test/integration/costumes.test.js +++ b/test/integration/costumes.test.js @@ -88,4 +88,19 @@ describe('Working with costumes', () => { const logs = await getLogs(); await expect(logs).toEqual([]); }); + + test('Undo/redo in the paint editor', async () => { + await loadUri(uri); + await clickXpath('//button[@title="tryit"]'); + await clickText('Costumes'); + await clickText('costume1', scope.costumesTab); + await clickText('Convert to Bitmap', scope.costumesTab); + await clickXpath('//img[@alt="Undo"]'); + await clickText('Convert to Bitmap', scope.costumesTab); + await clickXpath('//img[@alt="Undo"]'); + await clickXpath('//img[@alt="Redo"]'); + await clickText('Convert to Vector', scope.costumesTab); + const logs = await getLogs(); + await expect(logs).toEqual([]); + }); });