-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP]: Cypress automation for Trace analytics dashboard application #775
Merged
mengweieric
merged 13 commits into
opensearch-project:main
from
pratibhapandey16:feature/trace-test-cases
Jun 7, 2022
Merged
Changes from 12 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
003d7a4
Added cypress test cases for tooltip and search engine on Trace dashb…
pratibhapandey16 d0cbb4a
Added test cases for filters
pratibhapandey16 b8c22f3
Merge branch 'opensearch-project:main' into feature/trace-test-cases
pratibhapandey16 069884d
Added cypress test cases for tooltip and search engine on Trace dashb…
pratibhapandey16 87a1361
Added test cases for filters
pratibhapandey16 3e2fb0d
Merge branch 'feature/trace-test-cases' of github.com:pratibhapandey1…
pratibhapandey16 6b8151d
Added test cases for Service page in Trace analytics
pratibhapandey16 5b4b79a
Added Cypress test cases for trace analytics services spans table
deepaknevdepsl 5717ee8
Cypress test case for Traces
nidhisinghai 40dacc9
Merge branch 'feature/trace-test-cases' of https://github.com/nidhisi…
pratibhapandey16 4575e40
Cypress test case for Traces Updated
nidhisinghai d2105c0
Merge branch 'feature/trace-test-cases' of https://github.com/nidhisi…
pratibhapandey16 b63917d
Worked on review comments
pratibhapandey16 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -113,3 +113,44 @@ describe('Testing trace view', () => { | |
cy.contains('Spans (1)').should('exist'); | ||
}); | ||
}); | ||
|
||
describe('Testing traces table', () => { | ||
beforeEach(() => { | ||
cy.visit('app/observability-dashboards#/trace_analytics/traces', { | ||
onBeforeLoad: (win) => { | ||
win.sessionStorage.clear(); | ||
}, | ||
}); | ||
setTimeFilter(); | ||
}); | ||
|
||
it('Renders the traces table and verify Table Column, Pagination and Rows Data ', () => { | ||
cy.get('.euiTableCellContent__text').contains('Trace ID').should('exist'); | ||
cy.get('.euiTableCellContent__text').contains('Trace group').should('exist'); | ||
cy.get('.euiTableCellContent__text').contains('Latency (ms)').should('exist'); | ||
cy.get('.euiTableCellContent__text').contains('Percentile in trace group').should('exist'); | ||
cy.get('.euiTableCellContent__text').contains('Errors').should('exist'); | ||
cy.get('.euiTableCellContent__text').contains('Last updated').should('exist'); | ||
cy.get('[data-test-subj="pagination-button-next"]').click(); | ||
cy.contains('client_pay_order').should('exist'); | ||
cy.get('[data-test-subj="pagination-button-previous"]').click(); | ||
cy.contains('224.99').should('exist'); | ||
cy.get('.euiButtonEmpty').contains('5').click(); | ||
cy.contains('690d3c7af1a78cf89c43e...').should('exist'); | ||
cy.contains('5be8370207cbb002a165d...').click(); | ||
cy.contains('client_create_order').should('exist'); | ||
cy.get('path[style*="rgb(116, 146, 231)"]').should('exist'); | ||
cy.go('back'); | ||
cy.wait(delay); | ||
cy.get('.euiButtonEmpty__text').contains('Rows per page').click(); | ||
cy.get('.euiContextMenuItem__text').contains('15 rows').click(); | ||
cy.get('.euiTable--auto') | ||
.find("tr") | ||
.then((row) => { | ||
//row.length will give you the row count | ||
cy.log(row.length-1); | ||
let total=row.length-1; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is this needed? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Updated this code for assert |
||
}); | ||
cy.log('Rows are counted'); | ||
}); | ||
}); |
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you mean 'column'?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, updated the Spelling for same