I think the invasion was carried out not so much to take advantage of the strength of Russia and China ties, but actually the weakness of Ukraine-China ties in some ways.
Even after the Maidan revolution, China-Ukraine ties were very strong. It was not until the election of Zelensky and the collapse of the Motor Sich deal did the distrust boil to the surface. If Zelensky were able to repair ties, and even worse, buy affordable Chinese weapons, Russia would have lost it's positioning. Imagine a MiG-29 upgrade with JF-17 BLK3 avionics, I'm not sure Russia would have air superiority.