-
Notifications
You must be signed in to change notification settings - Fork 14k
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
chore: Add Cypress tests for drill by #23849
Conversation
Codecov Report
@@ Coverage Diff @@
## master #23849 +/- ##
=======================================
Coverage 68.11% 68.11%
=======================================
Files 1938 1938
Lines 74958 74970 +12
Branches 8141 8141
=======================================
+ Hits 51055 51065 +10
- Misses 21824 21826 +2
Partials 2079 2079
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
71c1375
to
5f6262a
Compare
@@ -61,7 +61,7 @@ | |||
HIVE_POLL_INTERVAL = 0.1 | |||
|
|||
SQL_MAX_ROW = 10000 | |||
SQLLAB_CTAS_NO_LIMIT = True # SQL_MAX_ROW will not take affect for the CTA queries | |||
SQLLAB_CTAS_NO_LIMIT = True # SQL_MAX_ROW will not take effect for the CTA queries |
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.
😃
cy.intercept('/api/v1/chart/data*').as(alias); | ||
}; | ||
|
||
const interceptLegacyChartData = () => { |
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 think for this you can import the existing interceptExploreJson
from explore/utils.ts
}; | ||
|
||
const interceptFormDataKey = () => { | ||
cy.intercept('/api/v1/explore/form_data').as('formDataKey'); |
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.
For these other interceptors, it would be good to place them in the utils. For example, if this request happens only in the dashboard, we could put them in dashboard/utils for reusability
}); | ||
}; | ||
|
||
const setTopLevelTab = (tabName: string) => { |
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 think we have this already in drilltodetail tests. Should it be moved to the utils?
]); | ||
}); | ||
|
||
it.only('Mixed Chart', () => { |
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.
Ops only
here
Thanks for comments @geido! All addressed |
SUMMARY
Tested flows:
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION