Skip to content

Commit

Permalink
fix cigroup6 (#5125)
Browse files Browse the repository at this point in the history
Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com>
  • Loading branch information
abbyhu2000 authored Sep 27, 2023
1 parent 7a843e6 commit c283945
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
9 changes: 7 additions & 2 deletions test/functional/apps/home/_navigation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,18 @@ import { FtrProviderContext } from '../../ftr_provider_context';

export default function ({ getService, getPageObjects }: FtrProviderContext) {
const browser = getService('browser');
const PageObjects = getPageObjects(['common', 'header', 'home', 'timePicker']);
const PageObjects = getPageObjects(['common', 'header', 'home', 'timePicker', 'discover']);
const appsMenu = getService('appsMenu');
const opensearchArchiver = getService('opensearchArchiver');
const opensearchDashboardsServer = getService('opensearchDashboardsServer');

describe('OpenSearch Dashboards browser back navigation should work', function describeIndexTests() {
before(async () => {
await opensearchArchiver.loadIfNeeded('discover');
await opensearchArchiver.loadIfNeeded('logstash_functional');
await opensearchDashboardsServer.uiSettings.replace({
defaultIndex: 'logstash-*',
});
});

it('detect navigate back issues', async () => {
Expand All @@ -51,8 +55,9 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
const homeUrl = await browser.getCurrentUrl();

// Navigate to discover app
await appsMenu.clickLink('Discover');
await PageObjects.common.navigateToApp('discover');
const discoverUrl = await browser.getCurrentUrl();

await PageObjects.timePicker.setDefaultAbsoluteRange();
const modifiedTimeDiscoverUrl = await browser.getCurrentUrl();

Expand Down
3 changes: 2 additions & 1 deletion test/functional/apps/home/_sample_data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,9 @@ 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(50);
await dashboardExpect.savedSearchRowCount(100);
log.debug('Checking input controls rendered');
await dashboardExpect.inputControlItemCount(3);
log.debug('Checking tag cloud rendered');
Expand Down

0 comments on commit c283945

Please sign in to comment.