Add setTimeout to the Then step to ensure processing before assert.