Marx doesn't make a prediction here, but merely identifies the necessary precondition for communism, namely, the material abundance generated by capitalism. Fully automated luxury communism cannot emerge without this foundational framework.
However, it is a necessary condition, not a sufficient one. Post-scarcity and automation do not guarantee a transition to communism