make validation
parameter in cypress helper function as a function
#4614
Labels
Status: Triage
Needs to be verified, categorized, etc
I think we need deeper validation; using
imgSnapshotTest
isn't enough some times, e.g., configure styles (#4527) or diagrams (#4263).I'm suggesting making the parameter an object; the first parameter is a helper function, and the second is options passed to it. Since each diagram has its own attributes, maybe create a helper function with some
.should
s andexpect
s that verifies the passed arguments are as expected. For example:We could add their helper method at the top of each spec file, or maybe add it to
cypress/helpers
with the name of the spec itself.Originally posted by @Yokozuna59 in #4552 (comment)
The text was updated successfully, but these errors were encountered: