Skip to content

Commit d93ac4e

Browse files
Merge branch 'master' into index-template-v2/table-view
2 parents 6176123 + 325f8e0 commit d93ac4e

4 files changed

Lines changed: 81 additions & 1 deletion

File tree

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
/*
2+
* Licensed to Elasticsearch B.V. under one or more contributor
3+
* license agreements. See the NOTICE file distributed with
4+
* this work for additional information regarding copyright
5+
* ownership. Elasticsearch B.V. licenses this file to you under
6+
* the Apache License, Version 2.0 (the "License"); you may
7+
* not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
20+
import { FtrProviderContext } from '../ftr_provider_context';
21+
22+
export default function({ getService, getPageObjects }: FtrProviderContext) {
23+
const PageObjects = getPageObjects(['common', 'dashboard', 'header', 'home', 'settings']);
24+
const a11y = getService('a11y');
25+
const dashboardPanelActions = getService('dashboardPanelActions');
26+
const testSubjects = getService('testSubjects');
27+
const inspector = getService('inspector');
28+
29+
describe('Dashboard Panel', () => {
30+
before(async () => {
31+
await PageObjects.common.navigateToUrl('home', 'tutorial_directory/sampleData');
32+
await PageObjects.home.addSampleDataSet('flights');
33+
await PageObjects.common.navigateToApp('dashboard');
34+
await testSubjects.click('dashboardListingTitleLink-[Flights]-Global-Flight-Dashboard');
35+
});
36+
37+
it('dashboard panel open ', async () => {
38+
const header = await dashboardPanelActions.getPanelHeading('[Flights] Airline Carrier');
39+
await dashboardPanelActions.toggleContextMenu(header);
40+
await a11y.testAppSnapshot();
41+
// doing this again will close the Context Menu, so that next snapshot can start clean.
42+
await dashboardPanelActions.toggleContextMenu(header);
43+
});
44+
45+
it('dashboard panel inspect', async () => {
46+
await dashboardPanelActions.openInspectorByTitle('[Flights] Airline Carrier');
47+
await a11y.testAppSnapshot();
48+
});
49+
50+
it('dashboard panel inspector view chooser ', async () => {
51+
await testSubjects.click('inspectorViewChooser');
52+
await a11y.testAppSnapshot();
53+
await testSubjects.click('inspectorViewChooser');
54+
});
55+
56+
it('dashboard panel inspector request statistics ', async () => {
57+
await inspector.openInspectorRequestsView();
58+
await a11y.testAppSnapshot();
59+
});
60+
61+
it('dashboard panel inspector request', async () => {
62+
await testSubjects.click('inspectorRequestDetailRequest');
63+
await a11y.testAppSnapshot();
64+
});
65+
66+
it('dashboard panel inspector response', async () => {
67+
await testSubjects.click('inspectorRequestDetailResponse');
68+
await a11y.testAppSnapshot();
69+
await inspector.close();
70+
});
71+
72+
it('dashboard panel full screen', async () => {
73+
const header = await dashboardPanelActions.getPanelHeading('[Flights] Airline Carrier');
74+
await dashboardPanelActions.toggleContextMenu(header);
75+
await testSubjects.click('embeddablePanelAction-togglePanel');
76+
await a11y.testAppSnapshot();
77+
});
78+
});
79+
}

test/accessibility/config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ export default async function({ readConfigFile }: FtrConfigProviderContext) {
3030
testFiles: [
3131
require.resolve('./apps/discover'),
3232
require.resolve('./apps/dashboard'),
33+
require.resolve('./apps/dashboard_panel'),
3334
require.resolve('./apps/visualize'),
3435
require.resolve('./apps/management'),
3536
require.resolve('./apps/console'),

x-pack/plugins/data_enhanced/public/search/es_search_strategy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export const enhancedEsSearchStrategyProvider: TSearchStrategyProvider<typeof ES
3333
};
3434
request.params = params;
3535

36-
const asyncOptions: IAsyncSearchOptions = { pollInterval: 1000, ...options };
36+
const asyncOptions: IAsyncSearchOptions = { pollInterval: 0, ...options };
3737

3838
return asyncSearch(
3939
{ ...request, serverStrategy: ES_SEARCH_STRATEGY },

0 commit comments

Comments
 (0)