If you were to ask the Chinese Communist Party, whether or not they "turned away" from Communism, I think the answer would be a hard "NO".
China has a complicated economy. If anything, China demonstrates that Communism and Capitalism can be made to co-exist in a weird disconcerting way. I don't think it's a particularly good model for how to run things, especially when mixed-in with authoritarian leadership.
Let's not forget, however, that China is far from an "affluent" country. If your definition of affluent is focused on measurements like income and net worth of the population, China as a whole still falls well outside of affluent.
Yes, there's a sliver of population that is wealthy even by international standards, but the bulk of the population has income in the low $100's of dollars per month. That's what enables China to be the factory to the world. Is it going to stay that way? I don't know, but I think the CCP wants to keep it like it is.