A note after writing some basic acceptance tests for the Elections Plugin:
-
If you use the default
loggedInoption, you’re logged in aseviltroutwith the properties in this session fixture -
You can login as a custom user (necessary if you’ve added custom user properties) by defining your own session fixture and setting it as the current user using the
beforeEachhook. See here for an example.
@eviltrout is there a better way of using a custom user for acceptance tests?