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

Add an integration test for bitmap vector conversion

parent b44831ba
No related branches found
No related tags found
No related merge requests found
......@@ -64,4 +64,28 @@ describe('Working with costumes', () => {
const logs = await getLogs();
await expect(logs).toEqual([]);
});
test('Converting bitmap/vector in paint editor', async () => {
await loadUri(uri);
await clickXpath('//button[@title="tryit"]');
await clickText('Costumes');
// Convert the first costume to bitmap.
await clickText('costume1', scope.costumesTab);
await clickText('Convert to Bitmap', scope.costumesTab);
// Make sure mode switches back to vector for vector costume.
await clickText('costume2', scope.costumesTab);
await clickText('Convert to Bitmap', scope.costumesTab);
// Make sure bitmap is saved by switching back and converting to vector.
await clickText('Sounds');
await clickText('Costumes');
await clickText('Convert to Vector', scope.costumesTab); // costume2
await clickText('costume1', scope.costumesTab);
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