Skip to content

Commit

Permalink
uncomment
Browse files Browse the repository at this point in the history
Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com>
  • Loading branch information
abbyhu2000 committed Feb 7, 2024
1 parent 8aa95fb commit ce414fb
Show file tree
Hide file tree
Showing 6 changed files with 553 additions and 553 deletions.
40 changes: 20 additions & 20 deletions test/functional/apps/context/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,27 +34,27 @@ export default function ({ getService, getPageObjects, loadTestFile }) {
const PageObjects = getPageObjects(['common']);
const opensearchDashboardsServer = getService('opensearchDashboardsServer');

// describe('context app', function () {
// this.tags('ciGroup1');
describe('context app', function () {
this.tags('ciGroup1');

// before(async function () {
// await browser.setWindowSize(1200, 800);
// await opensearchArchiver.loadIfNeeded('logstash_functional');
// await opensearchArchiver.load('visualize');
// await opensearchDashboardsServer.uiSettings.replace({
// defaultIndex: 'logstash-*',
// });
// await PageObjects.common.navigateToApp('discover');
// });
before(async function () {
await browser.setWindowSize(1200, 800);
await opensearchArchiver.loadIfNeeded('logstash_functional');
await opensearchArchiver.load('visualize');
await opensearchDashboardsServer.uiSettings.replace({
defaultIndex: 'logstash-*',
});
await PageObjects.common.navigateToApp('discover');
});

// after(function unloadMakelogs() {
// return opensearchArchiver.unload('logstash_functional');
// });
after(function unloadMakelogs() {
return opensearchArchiver.unload('logstash_functional');
});

// loadTestFile(require.resolve('./_context_navigation'));
// loadTestFile(require.resolve('./_discover_navigation'));
// loadTestFile(require.resolve('./_filters'));
// loadTestFile(require.resolve('./_size'));
// loadTestFile(require.resolve('./_date_nanos'));
// });
loadTestFile(require.resolve('./_context_navigation'));
loadTestFile(require.resolve('./_discover_navigation'));
loadTestFile(require.resolve('./_filters'));
loadTestFile(require.resolve('./_size'));
loadTestFile(require.resolve('./_date_nanos'));
});
}
132 changes: 66 additions & 66 deletions test/functional/apps/dashboard/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,78 +51,78 @@ export default function ({ getService, loadTestFile }) {
await opensearchArchiver.unload('logstash_functional');
}

// describe('dashboard app', function () {
// // This has to be first since the other tests create some embeddables as side affects and our counting assumes
// // a fresh index.
// describe('using current data', function () {
// this.tags('ciGroup2');
// before(loadCurrentData);
// after(unloadCurrentData);
describe('dashboard app', function () {
// This has to be first since the other tests create some embeddables as side affects and our counting assumes
// a fresh index.
describe('using current data', function () {
this.tags('ciGroup2');
before(loadCurrentData);
after(unloadCurrentData);

// loadTestFile(require.resolve('./empty_dashboard'));
// loadTestFile(require.resolve('./url_field_formatter'));
// loadTestFile(require.resolve('./embeddable_rendering'));
// loadTestFile(require.resolve('./create_and_add_embeddables'));
// loadTestFile(require.resolve('./edit_embeddable_redirects'));
// loadTestFile(require.resolve('./edit_visualizations'));
// loadTestFile(require.resolve('./time_zones'));
// loadTestFile(require.resolve('./dashboard_options'));
// loadTestFile(require.resolve('./data_shared_attributes'));
// loadTestFile(require.resolve('./embed_mode'));
// loadTestFile(require.resolve('./dashboard_back_button'));
// loadTestFile(require.resolve('./dashboard_error_handling'));
// loadTestFile(require.resolve('./legacy_urls'));
loadTestFile(require.resolve('./empty_dashboard'));
loadTestFile(require.resolve('./url_field_formatter'));
loadTestFile(require.resolve('./embeddable_rendering'));
loadTestFile(require.resolve('./create_and_add_embeddables'));
loadTestFile(require.resolve('./edit_embeddable_redirects'));
loadTestFile(require.resolve('./edit_visualizations'));
loadTestFile(require.resolve('./time_zones'));
loadTestFile(require.resolve('./dashboard_options'));
loadTestFile(require.resolve('./data_shared_attributes'));
loadTestFile(require.resolve('./embed_mode'));
loadTestFile(require.resolve('./dashboard_back_button'));
loadTestFile(require.resolve('./dashboard_error_handling'));
loadTestFile(require.resolve('./legacy_urls'));

// // Note: This one must be last because it unloads some data for one of its tests!
// // No, this isn't ideal, but loading/unloading takes so much time and these are all bunched
// // to improve efficiency...
// loadTestFile(require.resolve('./dashboard_query_bar'));
// });
// Note: This one must be last because it unloads some data for one of its tests!
// No, this isn't ideal, but loading/unloading takes so much time and these are all bunched
// to improve efficiency...
loadTestFile(require.resolve('./dashboard_query_bar'));
});

// describe('using current data', function () {
// this.tags('ciGroup3');
// before(loadCurrentData);
// after(unloadCurrentData);
describe('using current data', function () {
this.tags('ciGroup3');
before(loadCurrentData);
after(unloadCurrentData);

// loadTestFile(require.resolve('./full_screen_mode'));
// loadTestFile(require.resolve('./dashboard_filter_bar'));
// loadTestFile(require.resolve('./dashboard_filtering'));
// loadTestFile(require.resolve('./panel_expand_toggle'));
// loadTestFile(require.resolve('./dashboard_grid'));
// loadTestFile(require.resolve('./view_edit'));
// loadTestFile(require.resolve('./dashboard_saved_query'));
// // Order of test suites *shouldn't* be important but there's a bug for the view_edit test above
// // https://github.com/elastic/kibana/issues/46752
// // The dashboard_snapshot test below requires the timestamped URL which breaks the view_edit test.
// // If we don't use the timestamp in the URL, the colors in the charts will be different.
// loadTestFile(require.resolve('./dashboard_snapshots'));
// });
loadTestFile(require.resolve('./full_screen_mode'));
loadTestFile(require.resolve('./dashboard_filter_bar'));
loadTestFile(require.resolve('./dashboard_filtering'));
loadTestFile(require.resolve('./panel_expand_toggle'));
loadTestFile(require.resolve('./dashboard_grid'));
loadTestFile(require.resolve('./view_edit'));
loadTestFile(require.resolve('./dashboard_saved_query'));
// Order of test suites *shouldn't* be important but there's a bug for the view_edit test above
// https://github.com/elastic/kibana/issues/46752
// The dashboard_snapshot test below requires the timestamped URL which breaks the view_edit test.
// If we don't use the timestamp in the URL, the colors in the charts will be different.
loadTestFile(require.resolve('./dashboard_snapshots'));
});

// // Each of these tests call initTests themselves, the way it was originally written. The above tests only load
// // the data once to save on time. Eventually, all of these tests should just use current data and we can reserve
// // legacy data only for specifically testing BWC situations.
// describe('using legacy data', function () {
// this.tags('ciGroup4');
// before(loadLogstash);
// after(unloadLogstash);
// Each of these tests call initTests themselves, the way it was originally written. The above tests only load
// the data once to save on time. Eventually, all of these tests should just use current data and we can reserve
// legacy data only for specifically testing BWC situations.
describe('using legacy data', function () {
this.tags('ciGroup4');
before(loadLogstash);
after(unloadLogstash);

// loadTestFile(require.resolve('./dashboard_time_picker'));
// loadTestFile(require.resolve('./bwc_shared_urls'));
// loadTestFile(require.resolve('./panel_replacing'));
// loadTestFile(require.resolve('./panel_cloning'));
// loadTestFile(require.resolve('./panel_context_menu'));
// loadTestFile(require.resolve('./dashboard_state'));
// });
loadTestFile(require.resolve('./dashboard_time_picker'));
loadTestFile(require.resolve('./bwc_shared_urls'));
loadTestFile(require.resolve('./panel_replacing'));
loadTestFile(require.resolve('./panel_cloning'));
loadTestFile(require.resolve('./panel_context_menu'));
loadTestFile(require.resolve('./dashboard_state'));
});

// describe('using legacy data', function () {
// this.tags('ciGroup5');
// before(loadLogstash);
// after(unloadLogstash);
describe('using legacy data', function () {
this.tags('ciGroup5');
before(loadLogstash);
after(unloadLogstash);

// loadTestFile(require.resolve('./dashboard_save'));
// loadTestFile(require.resolve('./dashboard_time'));
// loadTestFile(require.resolve('./dashboard_listing'));
// loadTestFile(require.resolve('./dashboard_clone'));
// });
// });
loadTestFile(require.resolve('./dashboard_save'));
loadTestFile(require.resolve('./dashboard_time'));
loadTestFile(require.resolve('./dashboard_listing'));
loadTestFile(require.resolve('./dashboard_clone'));
});
});
}
22 changes: 11 additions & 11 deletions test/functional/apps/home/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,17 @@ import { FtrProviderContext } from '../../ftr_provider_context';
export default function ({ getService, loadTestFile }: FtrProviderContext) {
const browser = getService('browser');

// describe('homepage app', function () {
// this.tags('ciGroup6');
describe('homepage app', function () {
this.tags('ciGroup6');

// before(function () {
// return browser.setWindowSize(1200, 800);
// });
before(function () {
return browser.setWindowSize(1200, 800);
});

// loadTestFile(require.resolve('./_navigation'));
// loadTestFile(require.resolve('./_home'));
// loadTestFile(require.resolve('./_newsfeed'));
// loadTestFile(require.resolve('./_add_data'));
// loadTestFile(require.resolve('./_sample_data'));
// });
loadTestFile(require.resolve('./_navigation'));
loadTestFile(require.resolve('./_home'));
loadTestFile(require.resolve('./_newsfeed'));
loadTestFile(require.resolve('./_add_data'));
loadTestFile(require.resolve('./_sample_data'));
});
}
Loading

0 comments on commit ce414fb

Please sign in to comment.