-
Notifications
You must be signed in to change notification settings - Fork 90
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 support for running Cypress under Windows/WSL #712
Conversation
…press-loop under Windows
Note: On the very first execution under Windows, the patch will only be applied on running |
… on deleting files
|
There were already files present. Updated script to remove them first before the copy operation. Issue resolved. |
Discovered image comparisons all failed under GUI when running under Windows due to a 15 pixel window size difference. Fixed. |
With this change ngageoint/opensphere-build-resolver#46, this PR is largely OBE. I'll submit a new PR with the change for the image comparisons under Windows. Closed. |
Overall added support for running Cypress tests under Windows. Note that some of the implementation/usage was impacted by cypress-io/cypress#4145. Changes were NOT made to test scripts and any issues with those should be handled separately. (Several tests are currently failing; this is known and unrelated)
Changes:
http-server
where Cypress was stuck in an endless redirect loop under Windows ERR_INVALID_REDIRECT when running http-server http-party/http-server#525yarn install
. (Yarn operates differently when executed under Windows vs Linux environments. Git Bash doesn't know how to follow the symlinks it generates under Ubuntu, hence the patch)yarn stop-server
)test:cypress-spec
andtest:cypress-loop
under WindowsRecommended Tests (under Windows AND Linux/MacOS):
Note: Windows tests should be executed under Git Bash, not PowerShell or the Command Prompt and definitely not within Ubuntu.
cypress:test
) AND CLI (any other cypress script) do not immediately fail with a redirect errorpackage.json
Cypress scripts work (test:cypress
,test:cypress-all
,test:cypress-smoke
,test:cypress-spec
,test:cypress-loop
). To clarify, the script to start/stop the web server and Cypress work, tests are initiated. This does not mean tests have to pass, just that they can run.package.json
cypress scripts can be run back to back twice without script error (there are no lingering processes, issues with running on an already patched version of windows, etc.) (disregard test failures)yarn stop-server
)yarn install
,yarn upgrade
, andyarn build
, all still work correctly after Cypress has patched Windows (after running any one Cypress script from package.json). Then via Git Bash, Cypress scripts still work.