From d5ca1e4cff4eadade764be2f91f34565c496c1b6 Mon Sep 17 00:00:00 2001 From: Joe Fleming Date: Tue, 6 Jun 2017 12:39:50 -0700 Subject: [PATCH] remove intern setup #10937 seems to have brought this file back, likely as part of a bad merge resolution --- test/functional/index.js | 52 ---------------------------------------- 1 file changed, 52 deletions(-) delete mode 100644 test/functional/index.js diff --git a/test/functional/index.js b/test/functional/index.js deleted file mode 100644 index 4b067580a087f..0000000000000 --- a/test/functional/index.js +++ /dev/null @@ -1,52 +0,0 @@ -'use strict'; // eslint-disable-line - -define(function (require) { - require('intern/dojo/node!../support/env_setup'); - - const bdd = require('intern!bdd'); - const intern = require('intern'); - - global.__kibana__intern__ = { intern, bdd }; - - bdd.describe('kibana', function () { - let PageObjects; - let support; - - bdd.before(function () { - PageObjects.init(this.remote); - support.init(this.remote); - }); - const supportPages = [ - 'intern/dojo/node!../support/page_objects', - 'intern/dojo/node!../support' - ]; - - const requestedApps = process.argv.reduce((previous, arg) => { - const option = arg.split('='); - const key = option[0]; - const value = option[1]; - if (key === 'appSuites' && value) return value.split(','); - }); - - const apps = [ - 'intern/dojo/node!./apps/xpack', - 'intern/dojo/node!./apps/discover', - 'intern/dojo/node!./apps/management', - 'intern/dojo/node!./apps/visualize', - 'intern/dojo/node!./apps/console', - 'intern/dojo/node!./apps/dashboard', - 'intern/dojo/node!./status_page', - 'intern/dojo/node!./apps/context' - ].filter((suite) => { - if (!requestedApps) return true; - return requestedApps.reduce((previous, app) => { - return previous || ~suite.indexOf(app); - }, false); - }); - - require(supportPages.concat(apps), (loadedPageObjects, loadedSupport) => { - PageObjects = loadedPageObjects; - support = loadedSupport; - }); - }); -});