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

Add undo testing to paint editor integration test

parent 728e4afe
No related branches found
No related tags found
No related merge requests found
......@@ -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([]);
});
});
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