WIP: Tests for workflow actions triggered by other actions
Cf. issue #841 (closed): This first test is for the main failure mode described in the issue, which I believe can be fixed by adding context['document'].refresh_from_db()
in WorkflowStateAction.execute
.