Implement Cypress testing for Music Blocks#4362
Implement Cypress testing for Music Blocks#4362walterbender merged 2 commits intosugarlabs:masterfrom
Conversation
|
@walterbender @apsinghdev I have created some basic end to end test for Mb home page, ensuring the tests handle the MB loading page well. Would love your feedback so we can cover more thoroughly |
|
@BeNikk seems some big changes. I'll surely take a look. |
|
Sure. Thanks a lot |
|
There is a package-lock conflict. And I am not sure that cypress version is compatible with some of the configs we use for other tests. Can you please test. |
|
I'll fix it for sure. |
377d122 to
4365e9b
Compare
|
@walterbender I'hve resolved the merge conflicts and this cypress version seems to be compatible with jest, can you please check and lemme know if any further changes are required? |
|
what command are you using to run the test? |
|
Npx cypress open for visually seeing the tests running, otherwise npx cypress run. |
|
Yes. We'll need the proper packages installed. |
|
I am seeing an error: Your configFile is invalid: /home/walter/Documents/walter/musicblocks/cypress.config.js Not sure why. |
|
Do I need to be running the MB server on my local host?
We attempted to make an http request to this URL but the request failed without a response. We received this error at the network level:
Common situations why this would fail:
|
|
Yes, Sorry I forgot to mention but we do need MB Server running locally before we run the cypress tests. |
|
I just checked cypress config, to run all tests succesfully, we need to pass this property- testIsolation: false to the cypress.config file, because it let's the MB page load first and then run all tests, otherwise it justs run tests without loading and waiting for the page |
|
@walterbender Please let me know if there’s anything I can do to assist in getting it reviewed, happy to do changes. |
|
Cool. It finally ran properly for me. |
|
We passed a lot of tests this week :) |

Overview
Introduces Cypress end-to-end testing framework to Music Blocks
Changes
Testing Coverage
Next Steps
Screenshots and Recordings
Screencast from 07-02-25 06:36:11 PM IST.webm