Upgrade cypress 10.6.0 devDependencies in ui#2743
Conversation
|
/test go-unit-tests |
|
Images are ready for the commit at 0abad1f. To use with deploy scripts, first |
|
/test style-checks |
|
The |
|
@pedrottimark: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
dvail
left a comment
There was a problem hiding this comment.
Amazing the seemingly unrelated tooling changes that cause issues in other parts of the code base. 🤷
|
Yeah, out of an abundance of caution, I will merge first thing Monday morning. |
Description
Catch up with cypress after pause to fix intermittent test failures in OpenShift CI.
Click a name to run a test file

When the tests have finished, click the Specs button to run another test file

Resources
https://www.cypress.io/blog/2022/06/21/cypress-10-2-0-run-tests-up-to-2x-faster-on-apple-silicon-m1/
The
baseUrlconfig option is no longer valid at the top level of the configuration, and may only be defined inside thee2econfiguration object.The
ignoreTestFilesoption has been replaced with theexcludeSpecPatternoptions.Instead, replace with
specPatternoption inside thee2econfiguration object.The
pluginsFileoption is no longer used.The argument signature is different for Cypress' builtin
.selectFile()command than the.attachFilecommand thecypress-file-uploadplugin provided.Rename
fileContentascontentsproperty. Inferred from docs that if nofileNameproperty thencontentscan have relative file path from folder which contains Cypress config file. Therefore, it needsCypress.config('fixturesFolder')unlikefixturewhich is relative to fixtures folder.Remove
encodingproperty. It is no longer needed due to improved binary file handling in Cypress 9.0.In most cases you do not need to give a
mimeTypeexplicitly. Cypress will attempt to infer the MIME type based on the extension of the fileName if none is provided.The
defineConfighelper function is exported by Cypress, and it provides automatic code completion for configuration in many popular code editors. See comment below about unexpected side effect.supportFileis set to look for cypress/support/e2e.jsChanged files
Replace ui/cypress.json with ui/cypress.config.js
Replace
attachFilewithselectFilemethod:Delete obsolete mainmenu.test.js
Adjust support files
import 'cypress-file-upload';which is superseded byselectFilemethod.Residue: Refactor network tests to call helper function instead of
Cypress.Commands.add('getCytoscape', …)command.Checklist
Testing Performed
yarn cypress-openin ui/apps/platform select an assortment of tests:selectFilemethodselectFilemethod