You can apply weapon illusions to Legion Artifacts in the Dragonflight expansion.

The change was spotted by Reddit user Crepuscertine who reported it in the following thread.

Weapon Illusions teach you the appearance of a weapon enchant.