diff --git a/test/integration/blocks.test.js b/test/integration/blocks.test.js index 5fba5cfe4de9b26a1b32ae11bcfa58036c92883b..2e0466d3bfbb0a0e9fe8e03ca362461a5d8ddbba 100644 --- a/test/integration/blocks.test.js +++ b/test/integration/blocks.test.js @@ -103,4 +103,18 @@ describe('Working with the blocks', () => { const logs = await getLogs(); 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([]); + }); });