Skip to content

Commit

Permalink
fix ciGroup6
Browse files Browse the repository at this point in the history
Signed-off-by: Anan Z <[email protected]>
  • Loading branch information
ananzh committed Feb 6, 2024
1 parent 19bcd80 commit 2b7b684
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
3 changes: 1 addition & 2 deletions test/functional/apps/home/_sample_data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,8 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
await pieChart.expectPieSliceCount(4);
log.debug('Checking area, bar and heatmap charts rendered');
await dashboardExpect.seriesElementCount(15);
// The saved search of data explorer now renders 100 lines max
log.debug('Checking saved searches rendered');
await dashboardExpect.savedSearchRowCount(100);
await dashboardExpect.savedSearchRowCountFromLegacyTable(100);
log.debug('Checking input controls rendered');
await dashboardExpect.inputControlItemCount(3);
log.debug('Checking tag cloud rendered');
Expand Down
11 changes: 11 additions & 0 deletions test/functional/services/dashboard/expectations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,17 @@ export function DashboardExpectProvider({ getService, getPageObjects }: FtrProvi
});
}

async savedSearchRowCountFromLegacyTable(expectedCount: number) {
log.debug(`DashboardExpect.savedSearchRowCount(${expectedCount})`);
await retry.try(async () => {
const savedSearchRows = await testSubjects.findAll(
'docTableExpandToggleColumn',
findTimeout
);
expect(savedSearchRows.length).to.be(expectedCount);
});
}

async seriesElementCount(expectedCount: number) {
log.debug(`DashboardExpect.seriesElementCount(${expectedCount})`);
await retry.try(async () => {
Expand Down

0 comments on commit 2b7b684

Please sign in to comment.