I feel most of the discussions on this topic miss the fact that the most critical challenge is not what will happen when machines will be able to do all the work, rather it's whether we'll survive the transition. Even a small increase in unemployment can cause significant social unrest, all kinds of dangerous politics, trigger wars, etc.