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

Add an integration test for surprise sounds

parent 2aa0e8d9
No related branches found
No related tags found
No related merge requests found
......@@ -25,7 +25,7 @@ describe('Working with sounds', () => {
await driver.quit();
});
test('Adding a sound', async () => {
test('Adding a sound through the library', async () => {
await loadUri(uri);
await clickXpath('//button[@title="tryit"]');
await clickText('Sounds');
......@@ -63,6 +63,19 @@ describe('Working with sounds', () => {
await expect(logs).toEqual([]);
});
test('Adding a sound by surprise button', async () => {
await loadUri(uri);
await clickXpath('//button[@title="tryit"]');
await clickText('Sounds');
const el = await findByXpath('//button[@aria-label="Choose a Sound"]');
await driver.actions().mouseMove(el)
.perform();
await driver.sleep(500); // Wait for thermometer menu to come up
await clickXpath('//button[@aria-label="Surprise"]');
const logs = await getLogs();
await expect(logs).toEqual([]);
});
test('Duplicating a sound', async () => {
await loadUri(uri);
await clickXpath('//button[@title="tryit"]');
......
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