From a1eb638b7f4ffea7fbd8290fac7901311ce1513f Mon Sep 17 00:00:00 2001 From: Anan Date: Fri, 20 Dec 2024 12:47:34 -0800 Subject: [PATCH] fix comment Signed-off-by: Anan --- .../apps/query_enhancements/constants.js | 4 ++-- .../apps/query_enhancements/dataset_selector.spec.js | 5 +---- .../apps/query_enhancements/queries.spec.js | 5 +---- 3 files changed, 4 insertions(+), 10 deletions(-) diff --git a/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/query_enhancements/constants.js b/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/query_enhancements/constants.js index c96d4c033fc7..b59f85ec4f48 100644 --- a/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/query_enhancements/constants.js +++ b/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/query_enhancements/constants.js @@ -5,5 +5,5 @@ export const DATASOURCE_NAME = 'query-cluster'; export const WORKSPACE_NAME = 'query-workspace'; -export const START_TIME = 'Dec 31, 2020 @ 00:00:00.000'; -export const END_TIME = 'Dec 31, 2022 @ 23:59:59.999'; +export const START_TIME = 'Jan 1, 2020 @ 00:00:00.000'; +export const END_TIME = 'Jan 1, 2024 @ 00:00:00.000'; diff --git a/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/query_enhancements/dataset_selector.spec.js b/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/query_enhancements/dataset_selector.spec.js index f9606038afec..cf0144e08b6c 100644 --- a/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/query_enhancements/dataset_selector.spec.js +++ b/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/query_enhancements/dataset_selector.spec.js @@ -3,12 +3,9 @@ * SPDX-License-Identifier: Apache-2.0 */ -import { MiscUtils } from '@opensearch-dashboards-test/opensearch-dashboards-test-library'; import { WORKSPACE_NAME, DATASOURCE_NAME, START_TIME, END_TIME } from './constants'; import { BASE_PATH, SECONDARY_ENGINE } from '../../../../../utils/constants'; -const miscUtils = new MiscUtils(cy); - describe('dataset selector', { scrollBehavior: false }, () => { before(() => { cy.setupTestData( @@ -31,7 +28,7 @@ describe('dataset selector', { scrollBehavior: false }, () => { beforeEach(() => { // Create workspace cy.deleteWorkspaceByName(`${WORKSPACE_NAME}`); - miscUtils.visitPage('/app/home'); + cy.visit('/app/home'); cy.createInitialWorkspaceWithDataSource(`${DATASOURCE_NAME}`, `${WORKSPACE_NAME}`); }); diff --git a/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/query_enhancements/queries.spec.js b/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/query_enhancements/queries.spec.js index 60dfc4f35d48..7fd550c554ba 100644 --- a/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/query_enhancements/queries.spec.js +++ b/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/query_enhancements/queries.spec.js @@ -3,12 +3,9 @@ * SPDX-License-Identifier: Apache-2.0 */ -import { MiscUtils } from '@opensearch-dashboards-test/opensearch-dashboards-test-library'; import { WORKSPACE_NAME, DATASOURCE_NAME, START_TIME, END_TIME } from './constants'; import { BASE_PATH, SECONDARY_ENGINE } from '../../../../../utils/constants'; -const miscUtils = new MiscUtils(cy); - describe('query enhancement queries', { scrollBehavior: false }, () => { before(() => { // Load test data @@ -27,7 +24,7 @@ describe('query enhancement queries', { scrollBehavior: false }, () => { // Create workspace and set up index pattern cy.deleteWorkspaceByName(`${WORKSPACE_NAME}`); - miscUtils.visitPage('/app/home'); + cy.visit('/app/home'); cy.createInitialWorkspaceWithDataSource(`${DATASOURCE_NAME}`, `${WORKSPACE_NAME}`); // Create and select index pattern for data_logs_small_time_1*