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

How to test for notes/elements? #1637

Open
nathan-kerr opened this issue Sep 23, 2024 · 0 comments
Open

How to test for notes/elements? #1637

nathan-kerr opened this issue Sep 23, 2024 · 0 comments

Comments

@nathan-kerr
Copy link

I want to write tests for my app, but I'm not sure how to verify things.

For example, I want to write an E2E test (using Cypress) to verify that my app is producing staves with the correct clef/notes.

Browser inspection reveals the vf-stavenote element, but I don't see a way to test its pitch value so I know I haven't drawn a 'c4' when I expected something else. Same for clef and other elements.

I've considered visual regression testing, but this isn't always a good solution. For example, a random generator with a wide range of acceptable notes/elements would be troublesome.

Please advise!

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

No branches or pull requests

1 participant