I have already solved this problem, just via organizing my code in some way…
Boris
1

Page object pattern is super useful, and it’s great to use with Enzyme (as shown in my example). However, Sazerac is not a helper for the page object pattern — it’s for the data-driven pattern described in this post. You might benefit from using a data-driven approach with the page object examples from your article, regardless of whether you choose to use a library like Sazerac, or roll it yourself.

Like what you read? Give Mike Calvanese a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.