Skip to content

Commit

Permalink
Fixes more fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
stratoula committed May 9, 2022
1 parent 21d45ba commit 5c6a3a5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion test/functional/apps/dashboard/group1/dashboard_query_bar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
const esArchiver = getService('esArchiver');
const kibanaServer = getService('kibanaServer');
const pieChart = getService('pieChart');
const elasticChart = getService('elasticChart');
const queryBar = getService('queryBar');
const retry = getService('retry');
const PageObjects = getPageObjects(['common', 'dashboard', 'discover']);
Expand All @@ -38,7 +39,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {

it('causes panels to reload when refresh is clicked', async () => {
await esArchiver.unload('test/functional/fixtures/es_archiver/dashboard/current/data');

await elasticChart.setNewChartUiDebugFlag(true);
await queryBar.clickQuerySubmitButton();
await retry.tryForTime(5000, async () => {
const headers = await PageObjects.discover.getColumnHeaders();
Expand Down
4 changes: 2 additions & 2 deletions test/functional/apps/dashboard/group2/dashboard_filtering.ts
Original file line number Diff line number Diff line change
Expand Up @@ -327,15 +327,15 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
'Filter Test: animals: linked to search with filter'
);
await elasticChart.setNewChartUiDebugFlag(true);
await pieChart.expectPieSliceCount(7);
await pieChart.expectSliceCountForAllPies(7);
});

it('Pie chart linked to saved search filters shows no data with conflicting dashboard query', async () => {
await queryBar.setQuery('weightLbs<40');
await queryBar.submitQuery();
await PageObjects.dashboard.waitForRenderComplete();

await pieChart.expectPieSliceCount(5);
await pieChart.expectSliceCountForAllPies(5);
});
});
});
Expand Down
2 changes: 1 addition & 1 deletion test/functional/apps/dashboard/group3/bwc_shared_urls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
log.debug(`Navigating to ${url}`);

await browser.get(url, true);
await PageObjects.header.waitUntilLoadingHasFinished();
await elasticChart.setNewChartUiDebugFlag(true);
await PageObjects.header.waitUntilLoadingHasFinished();
await queryBar.submitQuery();
await dashboardExpect.selectedLegendColorCount('#000000', 5);
});
Expand Down

0 comments on commit 5c6a3a5

Please sign in to comment.