-
Notifications
You must be signed in to change notification settings - Fork 136
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
Add slow query E2E test #1141
Add slow query E2E test #1141
Conversation
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
Codecov Report
@@ Coverage Diff @@
## master #1141 +/- ##
==========================================
+ Coverage 28.10% 29.95% +1.84%
==========================================
Files 227 227
Lines 12908 12908
Branches 647 647
==========================================
+ Hits 3628 3866 +238
+ Misses 9130 8892 -238
Partials 150 150
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
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 rest LGTM.
"viewportWidth": 1500, | ||
"viewportHeight": 1000 |
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.
👍
ui/cypress/support/commands.js
Outdated
const dashboardAuthToken = localStorage.getItem('dashboard_auth_token') | ||
window.localStorage.setItem('dashboard_auth_token', dashboardAuthToken) |
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.
Are localStorage
and window.localStorage
different in cypress?
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.
There is no difference between the window.localStorage and localStorage in Cypress.
@@ -0,0 +1,211 @@ | |||
// Copyright 2021 PingCAP, Inc. Licensed under Apache-2.0. |
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.
How about organizing the code by functional modules. So that we can reduce some directory nesting and /__image_snapshots__
that generated by https://github.com/meinaart/cypress-plugin-snapshots can also be organized by functional modules.
Like:
/ui/cypress/integration/slow_query/list.spec.js
/ui/cypress/integration/slow_query/list.compat_spec.js
...
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.
Sure, I will update the organization.
Could we have some overview sights about the E2E coverage? |
Yes, I've been uploaded the report to Codecov Report, you can look into the report by clicking the link at Codecov Report. |
Cool! By the way is it possible to run this automatically? For example, by integrating with the CI run over master branch or run over the PR? |
The uploading job |
What this PR did?