Will machines completely replace all human beings?

Philosophically said, the Marxistic communism, which is based on Hegel’s dialectic, says that the capitalism is the thesis, the dictatorship of the proletariat is the antithesis, and classless equality and equal happiness for all is the synthesis. But if is right that history is class struggle (war), then it is not - or at least only without history - possible to get a classless equality and equal happiness for all. Okay, Hegel already claimed the end of history, also Marx who was a Left-Hegelian, and many others (mostly Hegelians, some Nietzscheans, some others). So, as long as there is history there is no classless equality and equal happiness for all, so that the classes, the inequality, thus the class struggle (war) remain.