That is indeed the ideal goal - automation and AI should allow us to achieve a post-scarcity 'Star Trek future' for mankind. However, to transition to this relatively more post-scarcity society requires significant and very careful changes to how society is structured politically. These changes can only be performed successfully by good quality political leadership (ha ha) that has both vision and a good understanding of technology. We simply do not have "good quality political leadership" anywhere in the world right now. This is a major concern. So there will likely be further unrest along the way. This is partly why we're already seeing a rise in leftist-Marxist protesting/unrest.