How does the COVID-19 antibody test work?

Millions of people could have access to a new coronavirus test. But how does it work?