Skip to content
Snippets Groups Projects
Commit d1cf79ec authored by adroitwhiz's avatar adroitwhiz
Browse files

add unit test for .bmp uploads

parent 146500f9
Branches
Tags 0.1.0-prerelease.20190718181300
1 merge request!1Synching Fork
test/fixtures/bmpfile.bmp

29.4 KiB

...@@ -148,6 +148,20 @@ describe('Working with costumes', () => { ...@@ -148,6 +148,20 @@ describe('Working with costumes', () => {
await expect(logs).toEqual([]); await expect(logs).toEqual([]);
}); });
test('Adding a bmp from file', async () => {
await loadUri(uri);
await clickText('Costumes');
const el = await findByXpath('//button[@aria-label="Choose a Costume"]');
await driver.actions().mouseMove(el)
.perform();
await driver.sleep(500); // Wait for thermometer menu to come up
const input = await findByXpath('//input[@type="file"]');
await input.sendKeys(path.resolve(__dirname, '../fixtures/bmpfile.bmp'));
await clickText('bmpfile', scope.costumesTab);
const logs = await getLogs();
await expect(logs).toEqual([]);
});
test('Adding several costumes with a gif', async () => { test('Adding several costumes with a gif', async () => {
await loadUri(uri); await loadUri(uri);
await clickText('Costumes'); await clickText('Costumes');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment