2017-04-12 00:01:06 +02:00
|
|
|
import {
|
|
|
|
CommonPageProvider,
|
|
|
|
ConsolePageProvider,
|
|
|
|
ShieldPageProvider,
|
|
|
|
ContextPageProvider,
|
|
|
|
DiscoverPageProvider,
|
|
|
|
HeaderPageProvider,
|
2017-11-29 22:24:00 +01:00
|
|
|
HomePageProvider,
|
2017-04-12 00:01:06 +02:00
|
|
|
DashboardPageProvider,
|
|
|
|
VisualizePageProvider,
|
|
|
|
SettingsPageProvider,
|
|
|
|
MonitoringPageProvider,
|
2017-05-11 21:07:23 +02:00
|
|
|
PointSeriesPageProvider,
|
2017-08-31 08:57:34 +02:00
|
|
|
VisualBuilderPageProvider,
|
2017-11-28 16:51:11 +01:00
|
|
|
TimelionPageProvider,
|
2017-04-12 00:01:06 +02:00
|
|
|
} from './page_objects';
|
|
|
|
|
|
|
|
import {
|
|
|
|
RemoteProvider,
|
2017-05-18 12:05:38 +02:00
|
|
|
FilterBarProvider,
|
2017-08-01 00:24:46 +02:00
|
|
|
QueryBarProvider,
|
2017-04-12 00:01:06 +02:00
|
|
|
FindProvider,
|
|
|
|
TestSubjectsProvider,
|
2017-05-11 21:07:23 +02:00
|
|
|
DocTableProvider,
|
|
|
|
ScreenshotsProvider,
|
2017-11-07 20:59:18 +01:00
|
|
|
DashboardVisualizationProvider,
|
2017-11-17 20:59:16 +01:00
|
|
|
DashboardExpectProvider,
|
2017-04-12 00:01:06 +02:00
|
|
|
} from './services';
|
|
|
|
|
2017-05-18 03:53:45 +02:00
|
|
|
export default async function ({ readConfigFile }) {
|
|
|
|
const commonConfig = await readConfigFile(require.resolve('../common/config'));
|
2017-04-12 00:01:06 +02:00
|
|
|
|
|
|
|
return {
|
|
|
|
testFiles: [
|
2017-05-18 03:53:45 +02:00
|
|
|
require.resolve('./apps/console'),
|
|
|
|
require.resolve('./apps/context'),
|
|
|
|
require.resolve('./apps/dashboard'),
|
|
|
|
require.resolve('./apps/discover'),
|
2017-11-29 22:24:00 +01:00
|
|
|
require.resolve('./apps/home'),
|
2017-05-18 03:53:45 +02:00
|
|
|
require.resolve('./apps/management'),
|
|
|
|
require.resolve('./apps/status_page'),
|
2017-11-28 16:51:11 +01:00
|
|
|
require.resolve('./apps/timelion'),
|
2017-05-18 03:53:45 +02:00
|
|
|
require.resolve('./apps/visualize'),
|
|
|
|
require.resolve('./apps/xpack'),
|
2017-04-12 00:01:06 +02:00
|
|
|
],
|
|
|
|
pageObjects: {
|
|
|
|
common: CommonPageProvider,
|
|
|
|
console: ConsolePageProvider,
|
|
|
|
shield: ShieldPageProvider,
|
|
|
|
context: ContextPageProvider,
|
|
|
|
discover: DiscoverPageProvider,
|
|
|
|
header: HeaderPageProvider,
|
2017-11-29 22:24:00 +01:00
|
|
|
home: HomePageProvider,
|
2017-04-12 00:01:06 +02:00
|
|
|
dashboard: DashboardPageProvider,
|
|
|
|
visualize: VisualizePageProvider,
|
|
|
|
settings: SettingsPageProvider,
|
|
|
|
monitoring: MonitoringPageProvider,
|
2017-05-11 21:07:23 +02:00
|
|
|
pointSeries: PointSeriesPageProvider,
|
2017-08-31 08:57:34 +02:00
|
|
|
visualBuilder: VisualBuilderPageProvider,
|
2017-11-28 16:51:11 +01:00
|
|
|
timelion: TimelionPageProvider
|
2017-04-12 00:01:06 +02:00
|
|
|
},
|
|
|
|
services: {
|
2017-05-18 03:53:45 +02:00
|
|
|
es: commonConfig.get('services.es'),
|
|
|
|
esArchiver: commonConfig.get('services.esArchiver'),
|
|
|
|
kibanaServer: commonConfig.get('services.kibanaServer'),
|
2017-07-19 18:27:16 +02:00
|
|
|
retry: commonConfig.get('services.retry'),
|
2017-04-12 00:01:06 +02:00
|
|
|
remote: RemoteProvider,
|
2017-05-18 12:05:38 +02:00
|
|
|
filterBar: FilterBarProvider,
|
2017-08-01 00:24:46 +02:00
|
|
|
queryBar: QueryBarProvider,
|
2017-04-12 00:01:06 +02:00
|
|
|
find: FindProvider,
|
|
|
|
testSubjects: TestSubjectsProvider,
|
2017-05-11 21:07:23 +02:00
|
|
|
docTable: DocTableProvider,
|
|
|
|
screenshots: ScreenshotsProvider,
|
2017-11-07 20:59:18 +01:00
|
|
|
dashboardVisualizations: DashboardVisualizationProvider,
|
2017-11-17 20:59:16 +01:00
|
|
|
dashboardExpect: DashboardExpectProvider,
|
2017-04-12 00:01:06 +02:00
|
|
|
},
|
2017-05-18 03:53:45 +02:00
|
|
|
servers: commonConfig.get('servers'),
|
|
|
|
apps: {
|
|
|
|
status_page: {
|
|
|
|
pathname: '/status',
|
|
|
|
},
|
|
|
|
discover: {
|
|
|
|
pathname: '/app/kibana',
|
|
|
|
hash: '/discover',
|
|
|
|
},
|
|
|
|
context: {
|
|
|
|
pathname: '/app/kibana',
|
|
|
|
hash: '/context',
|
|
|
|
},
|
|
|
|
visualize: {
|
|
|
|
pathname: '/app/kibana',
|
|
|
|
hash: '/visualize',
|
|
|
|
},
|
|
|
|
dashboard: {
|
|
|
|
pathname: '/app/kibana',
|
|
|
|
hash: '/dashboards',
|
|
|
|
},
|
|
|
|
settings: {
|
|
|
|
pathname: '/app/kibana',
|
|
|
|
hash: '/management',
|
|
|
|
},
|
2017-11-28 16:51:11 +01:00
|
|
|
timelion: {
|
|
|
|
pathname: '/app/timelion',
|
|
|
|
},
|
2017-05-18 03:53:45 +02:00
|
|
|
console: {
|
|
|
|
pathname: '/app/kibana',
|
|
|
|
hash: '/dev_tools/console',
|
|
|
|
},
|
2017-04-12 00:01:06 +02:00
|
|
|
},
|
2017-12-06 01:29:48 +01:00
|
|
|
junit: {
|
|
|
|
reportName: 'UI Functional Tests'
|
|
|
|
}
|
2017-04-12 00:01:06 +02:00
|
|
|
};
|
|
|
|
}
|