-
Notifications
You must be signed in to change notification settings - Fork 10
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
Allow a way to reset the makeup-next-id so that consistent IDs can be used for testing purposes #1
Comments
Will look into it! Thanks. |
@melquan You know that if the element already has an ID, then this module will leave it in place? Or do you mean IDs for elements that are not created by you? Like makeup-active-descendant for example. |
The IDs are not created by us. We have 3 instances of these generated IDs in the fixture snapshot. First is where have an
HTML generated in the snapshot:
Second is where we have a
and then call HTML generated in the snapshot:
Third is an
HTML generated in the snapshot:
Let me know if you need more information. |
Thanks for the info @melquan. I could certainly rejig the APIs around to support this, but before I do that, is there no way to signal those ids as dynamic in the fixture testing framework? |
I'm not familiar enough with the capabilities within the fixture testing framework to know if that's possible. Perhaps @DylanPiercey could provide some insight. |
When using jest and doing fixture snapshot tests (via
@marko/fixture-snapshots
), we are seeing new IDs generated by makeup-next-id so the tests fail noting mismatch in IDs.Example:
It would be nice to allow a way to reset the makeup-next-id so that consistent IDs can be used for testing purposes.
The text was updated successfully, but these errors were encountered: