The EU foreign policy needs unanimity, and some of the governments (mostly Hungary right now) will not allow it to take positions against abusive dictatorships.
So it'll be many years before the EU becomes a foreign policy power.
China is also Germany's second largest trading partner. France and Germany basically head the EU, so it's very unlikely that the EU will take a strong stance against China until this changes.
So it'll be many years before the EU becomes a foreign policy power.