This example creates two test methods:
-
yarn test
: just test state machinequestionaireMachine
. -
yarn dev
&yarn cy:open
: e2e test localhost:8080 page.
blog article link: https://medium.com/@humanhighway/xstate-%E5%88%9D%E6%8E%A2-3-%E4%BD%BF%E7%94%A8-xstate-test-cypress-%E5%9F%B7%E8%A1%8C-model-based-testing-fde24e9d77a4