diff --git a/test/helpers/selenium-helper.js b/test/helpers/selenium-helper.js index 8ed17e2f7ab76cef8f0b97988f71b8092733af0c..70e3bfed8d89a7059280d62a43d7784e97d592ed 100644 --- a/test/helpers/selenium-helper.js +++ b/test/helpers/selenium-helper.js @@ -31,7 +31,8 @@ class SeleniumHelper { modal: '*[@class="ReactModalPortal"]', reportedValue: '*[@class="blocklyDropDownContent"]', soundsTab: "*[@id='react-tabs-5']", - spriteTile: '*[starts-with(@class,"react-contextmenu-wrapper")]' + spriteTile: '*[starts-with(@class,"react-contextmenu-wrapper")]', + monitors: '*[starts-with(@class,"stage_monitor-wrapper")]' }; } diff --git a/test/integration/blocks.test.js b/test/integration/blocks.test.js index 2e0466d3bfbb0a0e9fe8e03ca362461a5d8ddbba..4963c5e44a8617ca7b0f7c68ea1985ef84262775 100644 --- a/test/integration/blocks.test.js +++ b/test/integration/blocks.test.js @@ -10,6 +10,7 @@ const { getDriver, getLogs, loadUri, + rightClickText, scope } = new SeleniumHelper(); @@ -81,6 +82,10 @@ describe('Working with the blocks', () => { await clickText('score', scope.blocksTab); await findByText('0', scope.reportedValue); // Tooltip with result + // And there should be a monitor visible + await rightClickText('score', scope.monitors); + await clickText('slider'); + const logs = await getLogs(); await expect(logs).toEqual([]); });