-
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
Modularize and cleanup panel #603
Modularize and cleanup panel #603
Conversation
Signed-off-by: Eugene Lee <[email protected]>
Signed-off-by: Eugene Lee <[email protected]>
Signed-off-by: Eugene Lee <[email protected]>
Signed-off-by: Eugene Lee <[email protected]>
Signed-off-by: Eugene Lee <[email protected]>
Signed-off-by: Eugene Lee <[email protected]>
Signed-off-by: Eugene Lee <[email protected]>
Codecov Report
@@ Coverage Diff @@
## main #603 +/- ##
============================================
+ Coverage 54.54% 54.69% +0.14%
Complexity 283 283
============================================
Files 239 240 +1
Lines 7795 7780 -15
Branches 1605 1597 -8
============================================
+ Hits 4252 4255 +3
+ Misses 3371 3354 -17
+ Partials 172 171 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Signed-off-by: Eugene Lee <[email protected]>
Signed-off-by: Eugene Lee <[email protected]>
Signed-off-by: Eugene Lee <[email protected]>
Signed-off-by: Eugene Lee <[email protected]>
Signed-off-by: Eugene Lee <[email protected]>
Signed-off-by: Eugene Lee <[email protected]>
Signed-off-by: Eugene Lee <[email protected]>
Signed-off-by: Eugene Lee <[email protected]>
Signed-off-by: Eugene Lee <[email protected]>
spanQueryOnePartThree, | ||
spanQueryTwoPartOne, | ||
spanQueryTwoPartTwo, | ||
spanQueryTwoPartThree, |
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.
np but might be better to loop over array, also why does this need to be split into 3 parts?
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.
I was finding that cypress would mistype it if it was just one long string, if I split it up and start at the parts where it was missing it works. 🦺
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.
i see, this is ok but you can also just pass the whole string and use a separate function to split by fixed length and feed to cypress.type()
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.
Yea the only problem is cypress would repeatedly miss certain characters so I had to split the string at those places not at a fixed length
cy.get('.euiTab').contains('Panel').click(); | ||
cy.wait(delay); | ||
cy.get('[aria-label="actionMenuButton"]').click(); | ||
cy.get('.euiContextMenuItem').contains('Edit').click(); | ||
supressResizeObserverIssue(); | ||
cy.wait(delay); | ||
cy.get('[data-test-subj="superDatePickerShowDatesButton"]').should('contain', 'Last 24 hours'); | ||
cy.get('[data-test-subj="superDatePickerShowDatesButton"]').should('contain', 'Last 24 months'); |
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.
will this test work when it's 2024?
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.
The year 2024??
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 the sample logs not get updated every time the cypress tests run??
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.
if it's using dashboards sample data then should be ok, if using the trace data then no
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.
Most of the tests with time range changes are using dashboards sample data with logs so I think it should be okay.
Signed-off-by: Eugene Lee <[email protected]>
Description
Issues Resolved
[List any issues this PR will resolve]
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.