Add an option to generate component deterministically #17377
Unanswered
zeid0ne
asked this question in
Ideas / Proposals
Replies: 1 comment 1 reply
-
i think the random stuff is added only if you use scoped css? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Let's take QExpansionItem for example.
When generating corresponding div, Quasar add some attributes to some div that are random, for example "id" or "aria-controls".
I am using Vitest, and i am generating a snapshot of a component using a QExpansionItem.
So, every time i run the snapshot, i have a different result, which break the goal of the snapshot.
A workaround is to stub the QExpansionItem, but thats not perfect cause my snapshot now cant detect "normal" changes about the QExpansionItem.
Is it possible to add an option to Quasar, in order to generate component deterministically please ?
Or even better is it possible to generate component determinstically by default ?
Thanks for all
Beta Was this translation helpful? Give feedback.
All reactions