-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Bump prismjs from 1.25.0 to 1.27.0 in /dashboards-observability (#508) (#574) Bumps [prismjs](https://github.com/PrismJS/prism) from 1.25.0 to 1.27.0. - [Release notes](https://github.com/PrismJS/prism/releases) - [Changelog](https://github.com/PrismJS/prism/blob/master/CHANGELOG.md) - [Commits](PrismJS/prism@v1.25.0...v1.27.0) --- updated-dependencies: - dependency-name: prismjs dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> (cherry picked from commit b4f491a) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * change to support java 8 in compile and runtime (#575) (#576) Signed-off-by: Zhongnan Su <[email protected]> (cherry picked from commit 5c43e9d) Co-authored-by: Zhongnan Su <[email protected]> * Add 1.3.0 release notes (#580) (#582) Signed-off-by: Eugene Lee <[email protected]> * cypress tests Signed-off-by: Eric Wei <[email protected]> * add stashed changes and resolve intermittent failed tests Signed-off-by: Eric Wei <[email protected]> * run tests and update snapshots Signed-off-by: Eric Wei <[email protected]> * added one missed changes Signed-off-by: Eric Wei <[email protected]> * update snapshots after merging main Signed-off-by: Eric Wei <[email protected]> * added back one missing tests Signed-off-by: Eric Wei <[email protected]> * merged main and run tests Signed-off-by: Eric Wei <[email protected]> * added snapshots Signed-off-by: Eric Wei <[email protected]> Co-authored-by: opensearch-trigger-bot[bot] <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Zhongnan Su <[email protected]>
- Loading branch information
1 parent
82c3d24
commit 94035bb
Showing
14 changed files
with
321 additions
and
90 deletions.
There are no files selected for viewing
279 changes: 220 additions & 59 deletions
279
dashboards-observability/.cypress/integration/event_analytics.spec.js
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
71 changes: 71 additions & 0 deletions
71
dashboards-observability/.cypress/utils/event_constants.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
import { supressResizeObserverIssue } from './constants' | ||
|
||
export const delay = 1000; | ||
export const YEAR_TO_DATE_DOM_ID = '[data-test-subj="superDatePickerCommonlyUsed_Year_to date"]' | ||
|
||
export const TEST_QUERIES = [ | ||
{ | ||
query: 'source = opensearch_dashboards_sample_data_flights', | ||
dateRangeDOM: YEAR_TO_DATE_DOM_ID | ||
}, | ||
{ | ||
query: 'source = opensearch_dashboards_sample_data_flights | stats avg(FlightDelayMin) by Carrier' | ||
}, | ||
{ | ||
query: 'source = opensearch_dashboards_sample_data_logs' | ||
}, | ||
{ | ||
query: 'source = opensearch_dashboards_sample_data_logs | stats count() by host', | ||
dateRangeDOM: YEAR_TO_DATE_DOM_ID | ||
}, | ||
{ | ||
query: 'source = opensearch_dashboards_sample_data_logs | stats count(), avg(bytes) by host, tags', | ||
dateRangeDOM: YEAR_TO_DATE_DOM_ID | ||
}, | ||
]; | ||
|
||
export const TESTING_PANEL = 'Mock Testing Panels'; | ||
export const SAVE_QUERY1 = 'Mock Flight Events Overview'; | ||
export const SAVE_QUERY2 = 'Mock Flight count by destination'; | ||
export const SAVE_QUERY3 = 'Mock Flight count by destination save to panel'; | ||
export const SAVE_QUERY4 = 'Mock Flight peek'; | ||
|
||
export const querySearch = (query, rangeSelected) => { | ||
cy.get('[data-test-subj="searchAutocompleteTextArea"]').type(query); | ||
cy.get('[data-test-subj="superDatePickerToggleQuickMenuButton"]').click(); | ||
cy.get(rangeSelected).click(); | ||
cy.get('[data-test-subj="superDatePickerApplyTimeButton"]').contains('Refresh').click(); | ||
}; | ||
|
||
export const landOnEventHome = () => { | ||
cy.visit(`${Cypress.env('opensearchDashboards')}/app/observability-dashboards#/event_analytics`); | ||
cy.wait(delay); | ||
}; | ||
|
||
export const landOnEventExplorer = () => { | ||
cy.visit( | ||
`${Cypress.env('opensearchDashboards')}/app/observability-dashboards#/event_analytics/explorer` | ||
); | ||
cy.wait(delay); | ||
}; | ||
|
||
export const landOnEventVisualizations = () => { | ||
cy.visit( | ||
`${Cypress.env('opensearchDashboards')}/app/observability-dashboards#/event_analytics/explorer` | ||
); | ||
cy.get('button[id="main-content-vis"]').contains('Visualizations').click(); | ||
supressResizeObserverIssue(); | ||
cy.wait(delay); | ||
}; | ||
|
||
export const landOnPanels = () => { | ||
cy.visit( | ||
`${Cypress.env('opensearchDashboards')}/app/observability-dashboards#/operational_panels` | ||
); | ||
cy.wait(delay); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters