diff --git a/packages/kbn-plugin-helpers/tasks/test/browser/test_browser_action.js b/packages/kbn-plugin-helpers/tasks/test/browser/test_browser_action.js index 0da1a7cb57a9..5e13aed6e91c 100644 --- a/packages/kbn-plugin-helpers/tasks/test/browser/test_browser_action.js +++ b/packages/kbn-plugin-helpers/tasks/test/browser/test_browser_action.js @@ -4,10 +4,15 @@ module.exports = function testBrowserAction(plugin, run, command) { command = command || {}; var kbnServerArgs = [ - '--kbnServer.testsBundle.pluginId=' + plugin.id, '--kbnServer.plugin-path=' + plugin.root ]; + if (command.plugins) { + kbnServerArgs.push('--kbnServer.testsBundle.pluginId=' + command.plugins); + } else { + kbnServerArgs.push('--kbnServer.testsBundle.pluginId=' + plugin.id); + } + var cmd = 'npm'; var task = (command.dev) ? 'test:dev' : 'test:browser'; var args = ['run', task, '--'].concat(kbnServerArgs);