Skip to content

Commit

Permalink
[Data Explorer] Delete legacy discover selenium tests (#5088)
Browse files Browse the repository at this point in the history
* delete legacy discover functional tests

Signed-off-by: abbyhu2000 <[email protected]>

* remove discover folder in config file

Signed-off-by: abbyhu2000 <[email protected]>

---------

Signed-off-by: abbyhu2000 <[email protected]>
  • Loading branch information
abbyhu2000 authored Sep 22, 2023
1 parent 41805a9 commit f14c199
Show file tree
Hide file tree
Showing 33 changed files with 5 additions and 2,297 deletions.
1 change: 0 additions & 1 deletion test/functional/apps/context/_date_nanos.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ export default function ({ getService, getPageObjects }) {
await opensearchDashboardsServer.uiSettings.update({
'context:defaultSize': `${TEST_DEFAULT_CONTEXT_SIZE}`,
'context:step': `${TEST_STEP_SIZE}`,
'discover:v2': false,
});
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ export default function ({ getService, getPageObjects }) {
await opensearchDashboardsServer.uiSettings.update({
'context:defaultSize': `${TEST_DEFAULT_CONTEXT_SIZE}`,
'context:step': `${TEST_STEP_SIZE}`,
'discover:v2': false,
});
});

Expand Down
4 changes: 0 additions & 4 deletions test/functional/apps/context/_filters.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,12 @@ export default function ({ getService, getPageObjects }) {
const docTable = getService('docTable');
const filterBar = getService('filterBar');
const retry = getService('retry');
const opensearchDashboardsServer = getService('opensearchDashboardsServer');
const browser = getService('browser');

const PageObjects = getPageObjects(['common', 'context']);

describe('context filters', function contextSize() {
beforeEach(async function () {
await opensearchDashboardsServer.uiSettings.replace({
'discover:v2': false,
});
await browser.refresh();
await PageObjects.context.navigateTo(TEST_INDEX_PATTERN, TEST_ANCHOR_ID, {
columns: TEST_COLUMN_NAMES,
Expand Down
1 change: 0 additions & 1 deletion test/functional/apps/context/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ export default function ({ getService, getPageObjects, loadTestFile }) {
await opensearchArchiver.load('visualize');
await opensearchDashboardsServer.uiSettings.replace({
defaultIndex: 'logstash-*',
'discover:v2': false,
});
await PageObjects.common.navigateToApp('discover');
});
Expand Down
5 changes: 0 additions & 5 deletions test/functional/apps/dashboard/dashboard_state.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,11 @@ export default function ({ getService, getPageObjects }) {
const retry = getService('retry');
const dashboardPanelActions = getService('dashboardPanelActions');
const dashboardAddPanel = getService('dashboardAddPanel');
const opensearchDashboardsServer = getService('opensearchDashboardsServer');

describe('dashboard state', function describeIndexTests() {
before(async function () {
await PageObjects.dashboard.initTests();
await PageObjects.dashboard.preserveCrossAppState();

await opensearchDashboardsServer.uiSettings.replace({
'discover:v2': false,
});
await browser.refresh();
});

Expand Down
4 changes: 0 additions & 4 deletions test/functional/apps/dashboard/panel_context_menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
const dashboardPanelActions = getService('dashboardPanelActions');
const dashboardAddPanel = getService('dashboardAddPanel');
const dashboardVisualizations = getService('dashboardVisualizations');
const opensearchDashboardsServer = getService('opensearchDashboardsServer');
const listingTable = getService('listingTable');
const PageObjects = getPageObjects([
'dashboard',
Expand Down Expand Up @@ -126,9 +125,6 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
const searchName = 'my search';

before(async () => {
await opensearchDashboardsServer.uiSettings.replace({
'discover:v2': false,
});
await browser.refresh();
await PageObjects.header.clickDiscover();
await PageObjects.discover.clickNewSearchButton();
Expand Down
69 changes: 0 additions & 69 deletions test/functional/apps/discover/_date_nanos.js

This file was deleted.

72 changes: 0 additions & 72 deletions test/functional/apps/discover/_date_nanos_mixed.js

This file was deleted.

Loading

0 comments on commit f14c199

Please sign in to comment.