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

Add an integration test for adding extensions

parent 2ded72b2
No related branches found
No related tags found
No related merge requests found
...@@ -103,4 +103,18 @@ describe('Working with the blocks', () => { ...@@ -103,4 +103,18 @@ describe('Working with the blocks', () => {
const logs = await getLogs(); const logs = await getLogs();
await expect(logs).toEqual([]); await expect(logs).toEqual([]);
}); });
test('Adding an extension', async () => {
await loadUri(uri);
await clickXpath('//button[@title="tryit"]');
await clickXpath('//button[@title="Add Extension"]');
await clickText('Pen');
await new Promise(resolve => setTimeout(resolve, 1000)); // Wait for scroll animation
// Make sure toolbox has been scrolled to the pen extension
await findByText('stamp', scope.blocksTab);
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