Add sleep to e2e test to wait for transition