[PATCH 6/8] xinput1_3/tests: Wait for the state to change before checking it.