expectState
Awaits for a state and checks if it matches the expected state.
Parameters
expected
The expected state.
Throws
if state does not match the expected state.
Awaits for a state and checks if it matches the expected state change from the previous state.
Parameters
expectedChange
The expected change from the previous state.
Throws
if state does not match the expected change.