Years of computer simulations. Countless ground tests. They've all led up to now. The Planetary Society's crowdfunded LightSail 2 spacecraft is successfully raising its orbit solely on the power of sunlight.
source https://www.lifetechnology.com/blogs/life-technology-news-blog/lightsail-2-spacecraft-successfully-demonstrates-flight-by-light