-
Notifications
You must be signed in to change notification settings - Fork 58
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
[Cypress Updates] Trace analytics updates #2251
[Cypress Updates] Trace analytics updates #2251
Conversation
Signed-off-by: Ritvi Bhatt <[email protected]>
Signed-off-by: Ritvi Bhatt <[email protected]>
Signed-off-by: Ritvi Bhatt <[email protected]>
@ritvibhatt Awesome work! 👍🏽 I see the tests pass, the error in CI is a bug in github actions: |
cy.contains(' (1)').should('exist'); | ||
cy.contains('03/25/2021 10:21:22').should('exist'); | ||
}); | ||
}); | ||
|
||
//here |
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.
Missed comment remove.
Signed-off-by: Ritvi Bhatt <[email protected]>
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.
LGTM! Great work, thanks.
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.
Hi @ritvibhatt , thanks for taking this on, and I just left some comments.
cy.get('.euiContextMenuItem__text').eq(2).contains('Disable all'); | ||
cy.get('.euiContextMenuItem__text').eq(3).contains('Invert inclusion'); | ||
cy.get('.euiContextMenuItem__text').eq(4).contains('Invert enabled/disabled'); | ||
cy.get('.euiContextMenuItem__text').eq(5).contains('Remove all'); |
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.
Not a blocker, however, I was wondering if we can do something like this:
const menuSelector = '.euiContextMenuItem__text';
const expectedMenuItems = [
'Enable all',
'Disable all',
'Invert inclusion',
'Invert enabled/disabled',
'Remove all',
];
cy.verifyContextMenuItems(menuSelector, expectedMenuItems);
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.
It looks like cypress can do something like that by iterating through each menu item to check but I think it might be more clear to have the order of the menu items laid out so holding off on this for now
.cypress/integration/trace_analytics_test/trace_analytics_services.spec.js
Outdated
Show resolved
Hide resolved
Signed-off-by: Ritvi Bhatt <[email protected]>
* updated cypress testing for traces Signed-off-by: Ritvi Bhatt <[email protected]> * update snapshots Signed-off-by: Ritvi Bhatt <[email protected]> * wait for page to load before checking rows Signed-off-by: Ritvi Bhatt <[email protected]> * remove forgetten comment Signed-off-by: Ritvi Bhatt <[email protected]> * centralize exapnding service view Signed-off-by: Ritvi Bhatt <[email protected]> --------- Signed-off-by: Ritvi Bhatt <[email protected]> Co-authored-by: Ritvi Bhatt <[email protected]> Co-authored-by: Adam Tackett <[email protected]> (cherry picked from commit 58d58a7) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* updated cypress testing for traces * update snapshots * wait for page to load before checking rows * remove forgetten comment * centralize exapnding service view --------- (cherry picked from commit 58d58a7) Signed-off-by: Ritvi Bhatt <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Ritvi Bhatt <[email protected]> Co-authored-by: Adam Tackett <[email protected]>
Description
Updates trace analytics cypress tests
Issues Resolved
#1886
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.