Repository navigation
chore: upgrade Cypress to 6.2.1 - #12605
Conversation
Codecov Report
@@ Coverage Diff @@
## master #12605 +/- ##
==========================================
- Coverage 66.83% 66.68% -0.16%
==========================================
Files 1022 1022
Lines 49994 49994
Branches 4892 5023 +131
==========================================
- Hits 33412 33336 -76
- Misses 16457 16533 +76
Partials 125 125
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
ded2f44 to
fc12c74
Compare
1e537b2 to
d74eb6b
Compare
f9e9117 to
f3d642a
Compare
There was a problem hiding this comment.
Previously this check also fails, but it doesn't report as an error.
There was a problem hiding this comment.
I'm surprised this (and the others below) even worked before?
There was a problem hiding this comment.
I think previously Cypress will just let this expect check in wait.then(...) pass even if it fails.
43850fa to
06895a4
Compare
* master: (52 commits) docs: Updates to Superset Site for 1.0 (apache#12626) test(native-filters): scoping tree in native filters modal (apache#12655) Fix tests errors and warnings - iteration 3 (apache#12212) (apache#12219) Fix tests errors and warnings - iteration 5 (apache#12212) (apache#12224) Fix tests errors and warnings - iteration 6 (apache#12212) (apache#12227) feat(native-filters): apply scoping of native filters to dashboard (apache#12716) Fix tests errors and warnings - iteration 4 (apache#12212) (apache#12223) Fix tests errors and warnings - iteration 7 (apache#12212) (apache#12245) fix: missing select menu background (apache#12759) fix(explore): incorrect missing datasource condition (apache#12758) feat: default timepicker to last week when dataset is changed (apache#12609) feat(explore): allow opening charts with missing dataset (apache#12705) chore: upgrade Cypress to 6.2.1 (apache#12605) refactor(explore): Enhance Dataset and Control panel Collapse components (apache#12218) feat: Adding option to set_database_uri CLI command (apache#12740) docs: Fixed typo on line 348 (apache#12739) Fix tests errors and warnings - iteration 2 (apache#12212) (apache#12214) docs: Remove gatsby-plugin-offline (apache#12693) test: oracle engine spec (apache#12615) test: hive db engine spec (apache#12520) ...
SUMMARY
Upgrade Cypress to 6.2.1 with some required refactoring:
readResponseBlobsince the newcy.intercept(..)API already reads JSON responses automatically.verifyResponseCodessince it's very unlikely that we get an incorrect status code yet still receive the correct response.FormDataparser sincerequest.bodyis no longer a nativeFormDataobject.should('not.visible')to.should('not.exist')because Cypress will now throw errors for elements that do not exist.Upgrading since I wanted to add more tests for time-series table and box plot viz.
Reference: Cypress's official migration guide
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
N/A
TEST PLAN
CI must pass
ADDITIONAL INFORMATION