forked from opensearch-project/dashboards-observability
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
6 changed files
with
63 additions
and
43 deletions.
There are no files selected for viewing
46 changes: 46 additions & 0 deletions
46
.cypress/integration/event_analytics_test/data_grid.spec.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,46 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
import { | ||
querySearch, | ||
landOnEventExplorer, | ||
clearQuerySearchBoxText, | ||
selectDefaultDataSource, | ||
} from '../../utils/event_analytics/helpers'; | ||
import { TEST_QUERIES } from '../../utils/event_analytics/constants'; | ||
|
||
describe('Open flyout for a data row to see details', () => { | ||
beforeEach(() => { | ||
landOnEventExplorer(); | ||
selectDefaultDataSource(); | ||
clearQuerySearchBoxText('searchAutocompleteTextArea'); | ||
querySearch(TEST_QUERIES[0].query, TEST_QUERIES[0].dateRangeDOM); | ||
}); | ||
|
||
it('Should be able to open flyout and see data, json and traces', () => { | ||
cy.get('[data-test-subj="dataGrid__openFlyoutBtn"]').first().click(); | ||
cy.get('.observability-flyout').should('exist'); | ||
cy.get('.observability-flyout .osdDocViewer .euiTabs span.euiTab__content') | ||
.contains('Table') | ||
.should('be.visible'); | ||
cy.get('.observability-flyout .osdDocViewer .euiTabs span.euiTab__content') | ||
.contains('JSON') | ||
.should('be.visible'); | ||
cy.get('.observability-flyout .osdDocViewer .euiTabs span.euiTab__content') | ||
.contains('Traces') | ||
.should('be.visible'); | ||
}); | ||
|
||
it('Should be able to see surrounding docs', () => { | ||
cy.get('[data-test-subj="dataGrid__openFlyoutBtn"]').first().click(); | ||
cy.get('.observability-flyout span.euiButton__text') | ||
.contains('View surrounding events') | ||
.should('be.visible') | ||
.click(); | ||
cy.get('.observability-flyout #surroundingFyout') | ||
.contains('View surrounding events') | ||
.should('exist'); | ||
}); | ||
}); |
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