diff --git a/test/integration/costumes.test.js b/test/integration/costumes.test.js index 3eca880f0196fc0ff5844bf85bcd6832829ecfa5..282ae3574bbc026d5b6e2b6f551b270c84a53a83 100644 --- a/test/integration/costumes.test.js +++ b/test/integration/costumes.test.js @@ -160,4 +160,19 @@ describe('Working with costumes', () => { const logs = await getLogs(); await expect(logs).toEqual([]); }); + + test('Costumes animate on mouseover', async () => { + await loadUri(uri); + await clickXpath('//button[@aria-label="Choose a Sprite"]'); + const searchElement = await findByXpath("//input[@placeholder='Search']"); + await searchElement.sendKeys('abb'); + const abbyElement = await findByXpath('//*[span[text()="Abby"]]'); + driver.actions() + .mouseMove(abbyElement) + .perform(); + // wait for one of Abby's alternate costumes to appear + await findByXpath('//img[@src="https://cdn.assets.scratch.mit.edu/internalapi/asset/b6e23922f23b49ddc6f62f675e77417c.svg/get/"]'); + const logs = await getLogs(); + await expect(logs).toEqual([]); + }); });