Refactor the wait inside _select in test_settings_change_language