McDonald's is testing humanoid robots in Shanghai to assist with customer service and basic tasks in restaurants.