diff --git a/test/fixtures/bmpfile.bmp b/test/fixtures/bmpfile.bmp new file mode 100644 index 0000000000000000000000000000000000000000..e96d271c315233ded54404460b0d79a11cb45ed3 Binary files /dev/null and b/test/fixtures/bmpfile.bmp differ diff --git a/test/integration/costumes.test.js b/test/integration/costumes.test.js index 0d1a784f6f7fdbdc259ad1fa561e3bd0f8d7c297..a93512441c44563ef85e3336b413318eb5cb6e64 100644 --- a/test/integration/costumes.test.js +++ b/test/integration/costumes.test.js @@ -148,6 +148,20 @@ describe('Working with costumes', () => { 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 () => { await loadUri(uri); await clickText('Costumes');