Skip to content

Commit

Permalink
Rename
Browse files Browse the repository at this point in the history
Signed-off-by: Tyler Ohlsen <[email protected]>
  • Loading branch information
ohltyler committed Jun 23, 2023
1 parent b56a6ac commit 8ec3f71
Show file tree
Hide file tree
Showing 11 changed files with 17 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ import {
INDEX_PATTERN_FILEPATH_SIMPLE,
INDEX_SETTINGS_FILEPATH_SIMPLE,
SAMPLE_DATA_FILEPATH_SIMPLE,
} from '../../../../utils/constants';
} from '../../../../../utils/constants';
import {
deleteFeatureAnywhereData,
deleteVisAugmenterData,
bootstrapDashboard,
} from '../../../../utils/dashboards/feature-anywhere/helpers';
} from '../../../../../utils/dashboards/vis-augmenter/helpers';

describe('Feature anywhere - existing dashboards work as expected', () => {
describe('Vis augmenter - existing dashboards work as expected', () => {
describe('dashboard with ineligible, eligible, and vega visualizations', () => {
const indexName = 'feature-anywhere-sample-index';
const indexPatternName = 'feature-anywhere-sample-*';
const dashboardName = 'Feature Anywhere Dashboard';
const indexName = 'vis-augmenter-sample-index';
const indexPatternName = 'vis-augmenter-sample-*';
const dashboardName = 'Vis Augmenter Dashboard';
const visualizationSpecs = [
{
name: 'count-agg-vis',
Expand Down Expand Up @@ -97,7 +97,7 @@ describe('Feature anywhere - existing dashboards work as expected', () => {
});

after(() => {
deleteFeatureAnywhereData(
deleteVisAugmenterData(
indexName,
indexPatternName,
visualizationNames,
Expand Down
2 changes: 1 addition & 1 deletion cypress/utils/dashboards/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import './vis_builder/commands';
import './vis_type_table/commands';
import './feature-anywhere/commands';
import './vis-augmenter/commands';

Cypress.Commands.add('waitForLoader', () => {
const opts = { log: false };
Expand Down
2 changes: 1 addition & 1 deletion cypress/utils/dashboards/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ export const SAVED_OBJECTS_PATH =

export * from './vis_builder/constants';
export * from './vis_type_table/constants';
export * from './feature-anywhere/constants';
export * from './vis-augmenter/constants';
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/

import _ from 'lodash';
import { BASE_PATH } from '../../../utils/constants';
import { BASE_PATH } from '../../constants';

Cypress.Commands.add('getVisPanelByTitle', (title) =>
cy.get(`[data-title="${title}"]`).parents('.embPanel').should('be.visible')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/

const SAMPLE_DATA_DIR_SIMPLE =
'dashboard/opensearch_dashboards/feature-anywhere/sample-data-simple/';
'dashboard/opensearch_dashboards/vis-augmenter/sample-data-simple/';

export const SAMPLE_DATA_FILEPATH_SIMPLE = SAMPLE_DATA_DIR_SIMPLE + 'data.json';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const devToolsRequest = (
* Cleans up the index & all associated saved objects (index pattern, visualizations,
* dashboards, etc.) created during the test run
*/
export const deleteFeatureAnywhereData = (
export const deleteVisAugmenterData = (
indexName,
indexPatternName,
visualizationNames,
Expand Down Expand Up @@ -83,7 +83,7 @@ api/opensearch-dashboards/management/saved_objects/_find?perPage=5000&page=1&fie
* Fetch the fixtures to create and configure an index, index pattern,
* and ingesting sample data to the index
*/
export const ingestFeatureAnywhereData = (
export const ingestVisAugmenterData = (
indexName,
indexPatternName,
indexSettingsFilepath,
Expand Down Expand Up @@ -274,13 +274,13 @@ export const bootstrapDashboard = (
visualizationSpecs
) => {
const miscUtils = new MiscUtils(cy);
deleteFeatureAnywhereData(
deleteVisAugmenterData(
indexName,
indexPatternName,
visualizationSpecs.map((visualizationSpec) => visualizationSpec.name),
dashboardName
);
ingestFeatureAnywhereData(
ingestVisAugmenterData(
indexName,
indexPatternName,
indexSettingsFilepath,
Expand Down
2 changes: 1 addition & 1 deletion cypress/utils/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
*/

export * from './plugins/anomaly-detection-dashboards-plugin/helpers';
export * from './dashboards/feature-anywhere/helpers';
export * from './dashboards/vis-augmenter/helpers';

0 comments on commit 8ec3f71

Please sign in to comment.