Skip to content
Snippets Groups Projects
Unverified Commit 97e6de10 authored by Paul Kaplan's avatar Paul Kaplan Committed by GitHub
Browse files

Merge pull request #1957 from paulkaplan/smoke-test-bitmap

Add an integration test for bitmap vector conversion
parents 5957372f e501b15b
No related branches found
No related tags found
No related merge requests found
...@@ -64,4 +64,28 @@ describe('Working with costumes', () => { ...@@ -64,4 +64,28 @@ describe('Working with costumes', () => {
const logs = await getLogs(); const logs = await getLogs();
await expect(logs).toEqual([]); 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