onCommit

fun onCommit(vararg states: Session.State<F>): TestSessionScript<F>

Enqueues a sequence of states to apply after Session.commit.