Handlebars helper for state #204
richardruiter
started this conversation in
Ideas
Replies: 1 comment
-
Already made a PR :) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We have BDD scenarios that often change (a small) part of the mocks. We don't want to copy a mock fle just because one boolean changed for example nor do we want all kind of complex conditionals etc.
Therefor we have created a custom handlebar helper called "state" and it get's it's value from a cookie, because that's most easy to configure from a client side.
This is the helper so far
From the test runner (in our case Cypress) we can just set the state for the session using a cookie.
The biggest advantage of this is that we can run tests in parallel without thinking about it.
How about adding this to the default helpers? Do you like the name? etc.
Beta Was this translation helpful? Give feedback.
All reactions