Skip to content
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

Implement Cypress testing for Music Blocks #4362

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

BeNikk
Copy link
Contributor

@BeNikk BeNikk commented Feb 7, 2025

Overview

Introduces Cypress end-to-end testing framework to Music Blocks

Changes

  • Added comprehensive Cypress test suite
  • Covered key application functionalities:
    • Application loading
    • Audio controls
    • UI element interactions
    • File operations

Testing Coverage

  • Added tests for:
    • Loading sequence
    • Play/stop buttons
    • Toolbar interactions
    • File management
    • User interface elements

Next Steps

  • Expand test coverage

Screenshots and Recordings

Screenshot from 2025-02-07 18-34-48
Screencast from 07-02-25 06:36:11 PM IST.webm

@BeNikk
Copy link
Contributor Author

BeNikk commented Feb 7, 2025

@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
I have added a video for reference too about how the tests run

@apsinghdev
Copy link
Contributor

@BeNikk seems some big changes. I'll surely take a look.

@BeNikk
Copy link
Contributor Author

BeNikk commented Feb 8, 2025

Sure. Thanks a lot

@walterbender
Copy link
Member

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.

@BeNikk
Copy link
Contributor Author

BeNikk commented Feb 9, 2025

I'll fix it for sure.

@BeNikk BeNikk force-pushed the cypress-testing-musicblocks branch from 377d122 to 4365e9b Compare February 12, 2025 07:30
@BeNikk
Copy link
Contributor Author

BeNikk commented Feb 12, 2025

@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?

@walterbender
Copy link
Member

what command are you using to run the test?

@BeNikk
Copy link
Contributor Author

BeNikk commented Feb 13, 2025

Npx cypress open for visually seeing the tests running, otherwise npx cypress run.
Should I add them as scripts in package.json?

@walterbender
Copy link
Member

Yes. We'll need the proper packages installed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants